-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[MIR] Do not forget to drop the boxes on scope exits #31465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
r? @jroesch (rust_highfive has picked a reviewer for you, use r? to override) |
unit_temp: Lvalue<'tcx>, | ||
data: &FreeData<'tcx>, | ||
target: BasicBlock) | ||
-> BasicBlock { | ||
target: BasicBlock) -> Terminator<'tcx> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: ->
on its own line
I guess we don't have a "leak detector" like we used to, huh? Seems like a good example of where it'd be nice to write "pattern matching" tests against the resulting MIR. |
Anyway, silly me for forgetting you need cleanup even on the normal path, seems obvious now :) |
@bors r+ |
📌 Commit 7faaf0e has been approved by |
Fixes #31463