Skip to content

don't leak internal temporaries from dbg!#154994

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
dianne:no-dbg-temp
Apr 12, 2026
Merged

don't leak internal temporaries from dbg!#154994
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
dianne:no-dbg-temp

Conversation

@dianne
Copy link
Copy Markdown
Contributor

@dianne dianne commented Apr 8, 2026

Fixes #154988

r? @Mark-Simulacrum as the reviewer of #154074

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Apr 8, 2026
@dianne
Copy link
Copy Markdown
Contributor Author

dianne commented Apr 8, 2026

I'd feel most comfortable reverting #154074 and #149869 on beta, but I'll beta-nominate this in case there's time to vet it and a preference to go ahead with it. It's a small diff, but macro changes are subtle.

@dianne dianne added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Apr 8, 2026
@cuviper
Copy link
Copy Markdown
Member

cuviper commented Apr 8, 2026

We discussed this today in the libs meeting. We agree that reverting is the safer option for 1.95, given the late timing. However, this PR might also miss the 1.96 branch if it's not merged quickly, and then we probably will want a backport there. So, we're going to leave the nomination for now and see where things stand next week.

@cuviper
Copy link
Copy Markdown
Member

cuviper commented Apr 8, 2026

I've posted reverts in #154999

@Mark-Simulacrum
Copy link
Copy Markdown
Member

Mark-Simulacrum commented Apr 11, 2026

@bors r+

It feels like we really want some kind of general test and/or language construct that makes this much less of a pain to write, though I guess probably most ecosystem macros wouldn't hit the same set of wide users needing the particular incantation to be 'perfect'.

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Apr 11, 2026

📌 Commit 35be9f2 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@rust-bors rust-bors bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 11, 2026
rust-bors bot pushed a commit that referenced this pull request Apr 11, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - #155057 (Update libc to v0.2.184)
 - #154967 (Test(lib/sync): Fix `test_rwlock_max_readers` for x86 Win7)
 - #154994 (don't leak internal temporaries from `dbg!`)
 - #155130 (Stabilize feature `isolate_most_least_significant_one`)
 - #154925 (Make Box/Rc/Arc::into_array allocator-aware (and add doctest))
 - #155063 (`ty::Alias`: replace `def_id: did` with `def_id`)
rust-bors bot pushed a commit that referenced this pull request Apr 12, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - #155057 (Update libc to v0.2.184)
 - #154967 (Test(lib/sync): Fix `test_rwlock_max_readers` for x86 Win7)
 - #154994 (don't leak internal temporaries from `dbg!`)
 - #155130 (Stabilize feature `isolate_most_least_significant_one`)
 - #154925 (Make Box/Rc/Arc::into_array allocator-aware (and add doctest))
 - #155063 (`ty::Alias`: replace `def_id: did` with `def_id`)
@rust-bors rust-bors bot merged commit 59b36a5 into rust-lang:main Apr 12, 2026
11 checks passed
@rustbot rustbot added this to the 1.97.0 milestone Apr 12, 2026
rust-timer added a commit that referenced this pull request Apr 12, 2026
Rollup merge of #154994 - dianne:no-dbg-temp, r=Mark-Simulacrum

don't leak internal temporaries from `dbg!`

Fixes #154988

r? @Mark-Simulacrum as the reviewer of #154074
@theemathas
Copy link
Copy Markdown
Contributor

theemathas commented Apr 12, 2026

Did this get merged in time for the 1.96.0 beta branch? (If not, we'll need to beta backport.)

Edit: It did not. So, a beta backport to 1.96.0 is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta-nominated Nominated for backporting to the compiler in the beta channel. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1.95 beta regression: "lua does not live long enough"

5 participants