Shorten even more panic temporary lifetimes#111590
Conversation
|
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
|
@bors r+ |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (2d17294): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 641.09s -> 640.861s (-0.04%) |
Followup to #104134. As pointed out by @bjorn3 in #104134 (review), there are other cases in the panic macros which would also benefit from dropping their non-Send temporaries as soon as possible, avoiding pointlessly holding them across an await point.
For the tests added in this PR, here are the failures you get today on master without the macro changes in this PR:
tests/ui/macros/panic-temporaries-2018.rs
tests/ui/macros/panic-temporaries.rs
r? bjorn3