Uh oh!
There was an error while loading. Please reload this page.
Fix line stepping in debugger. - #37310
Conversation
Attribute drop code to block's closing brace, instead of the line where the allocation was done. Attribute function epilogues to function body's closing brace, rather than the function header.
vadimcn
commented
Oct 20, 2016
I've opted to ignore the fact that span.lo actually points after the brace, because doing it "correctly" would require analyzing codemap for multibyte characters (as you pointed out on IRC). Which is costly, and brings zero benefit: a brace is always followed by |
arielb1
commented
Oct 20, 2016
Multibyte characters? Isn't a brace always a single-byte character? |
michaelwoerister
commented
Oct 20, 2016
@arielb1 Yes, but not all scopes end with braces
That's an interesting observation! From what you've written I assume you've tried it out in the debugger? |
michaelwoerister
commented
Oct 20, 2016
The test case covers the interesting cases, I think. |
michaelwoerister
commented
Oct 20, 2016
@bors r+ |
bors
commented
Oct 20, 2016
📌 Commit 209fe0d has been approved by |
Fix line stepping in debugger. Attribute drop code to block's closing brace, instead of the line where the allocation was done. Attribute function epilogues to function body's closing brace, rather than the function header. Fixesrust-lang#37032 r? @michaelwoerister
bors
commented
Oct 22, 2016
⌛ Testing commit 209fe0d with merge 0eb4d46... |
Fix line stepping in debugger. Attribute drop code to block's closing brace, instead of the line where the allocation was done. Attribute function epilogues to function body's closing brace, rather than the function header. Fixes#37032 r? @michaelwoerister
michaelwoerister
commented
Oct 22, 2016
🎉 |
Attribute drop code to block's closing brace, instead of the line where the allocation was done.
Attribute function epilogues to function body's closing brace, rather than the function header.
Fixes#37032
r? @michaelwoerister