Add regression test for dbg! early drop of temporaries#155725
Add regression test for dbg! early drop of temporaries#155725Vastargazing wants to merge 1 commit intorust-lang:mainfrom
Conversation
|
rustbot has assigned @ShoyuVanilla. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
I don't think there needs to be a ui test. |
You're right! the library test in tests.rs is run by CI, so a separate ui test is just duplication. I missed that when i looked at this. Closing. |
Add a compiletest regression for the dbg! temporary-lifetime bug fixed in #154074
#149869 rewrote multi-argument
dbg!expansion to avoid print tearing, butaccidentally caused borrowed temporaries to be dropped too early, triggering
E0716 on valid code (#153850). #154074 fixed the macro expansion and added a
library test, but that test only runs under
./x test library/std- therewas no tests/ui/ coverage.