Uh oh!
There was an error while loading. Please reload this page.
Fix macro call site spans - #33749
Conversation
nrc
commented
May 23, 2016
LGTM @DanielJCampbell does this break any of your macro tracing stuff? |
Not that I can see. No failed tests means it passed the tests I had for my stuff, which is a good sign, and I didn't use the original_span method for anything. |
nrc
commented
May 24, 2016
@bors: r+ |
bors
commented
May 24, 2016
📌 Commit 32b9494 has been approved by |
bors
commented
May 24, 2016
⌛ Testing commit 32b9494 with merge f3449b6... |
bors
commented
May 24, 2016
💔 Test failed - auto-win-gnu-32-opt-rustbuild |
alexcrichton
commented
May 24, 2016
bors
commented
May 26, 2016
⌛ Testing commit 32b9494 with merge c5bbba8... |
bors
commented
May 26, 2016
💔 Test failed - auto-linux-64-opt-mir |
bors
commented
May 26, 2016
☔ The latest upstream changes (presumably #33766) made this pull request unmergeable. Please resolve the merge conflicts. |
32b9494 to
e77a219CompareRebased. @bors r=nrc |
bors
commented
May 27, 2016
📌 Commit e77a219 has been approved by |
bors
commented
May 27, 2016
💡 This pull request was already approved, no need to approve it again.
|
bors
commented
May 27, 2016
📌 Commit e77a219 has been approved by |
bors
commented
May 27, 2016
Fix macro call site spans Fix macro call site spans. r? @nrc
bors
commented
May 27, 2016
💔 Test failed - auto-linux-64-opt-mir |
jseyfried
commented
May 27, 2016
@bors retry |
bors
commented
May 27, 2016
⌛ Testing commit e77a219 with merge e8ab466... |
bors
commented
May 27, 2016
💔 Test failed - auto-linux-64-opt-mir |
alexcrichton
commented
May 27, 2016
(that error looks like it may be legit) |
e77a219 to
cc36e38CompareI'm having trouble reproducing the error, but I think the above commit will fix it -- r? @nrc |
nrc
commented
May 30, 2016
r? @michaelwoerister for the last commit (r=me for the rest). If the |
jseyfried
commented
Jun 13, 2016
@michaelwoerister Since debuginfo for macros is already knowntobebuggy, perhaps we could just land this with the workaround in the last commit? Another option would be to always use call site spans for debuginfo as described in this comment. While I believe this would fix the bugs I linked and allow this PR to land without the workaround, it would make it impossible to |
michaelwoerister
commented
Jun 13, 2016
Oh, I forgot about this PR. I'll take a look at it tomorrow. |
michaelwoerister
commented
Jun 13, 2016
OK, so I won't get into debuginfo vs macros here -- I'd need to put a lot more thought into that and assess the current situation. From what I can see here, things don't get considerably worse, right? As far as the test case goes: There shouldn't even be a macro invocation here -- in fact, it had been a regular function call before someone changed it to account for the called function being moved, as far as I can tell. We just need something that allows us to reliably set a breakpoint at. I'd suggest just following the pattern of many other debuginfo test cases: Add an empty function |
1458996 to
2477341Comparejseyfried
commented
Jun 13, 2016
Right. I believe things can only get worse when there is a macro-expanded procedural macro invocation (in this case,
Makes sense, done. |
michaelwoerister
commented
Jun 14, 2016
@bors r=nrc Excellent |
bors
commented
Jun 14, 2016
📌 Commit 2477341 has been approved by |
bors
commented
Jun 14, 2016
Fix macro call site spans Fix macro call site spans. r? @nrc
Fix macro call site spans.
r? @nrc