Uh oh!
There was an error while loading. Please reload this page.
Do not run the default panic hook inside procedural macros. - #47933
Conversation
nikomatsakis
left a comment
There was a problem hiding this comment.
clearly we need to fix that test you mentioned -- or maybe we can do a UI test? Seems like we ought to be able to, no?
Zoxc
commented
Feb 2, 2018
I don't know why the test does not work. It is already an UI test which tests stderr. |
nikomatsakis
commented
Feb 5, 2018
@Zoxc I'd like to understand that :/ |
bors
commented
Feb 6, 2018
☔ The latest upstream changes (presumably #47203) made this pull request unmergeable. Please resolve the merge conflicts. |
Zoxc
commented
Feb 10, 2018
I probably should move the panic handler to librustc. I want to sneak in some printing of the query stack on panic too. |
nikomatsakis
commented
Feb 12, 2018
@Zoxc I did some investigating, not sure if I mentioned it here; I was not able to reproduce the problem except for on nightly builds. Any clue why that might be? |
nikomatsakis
commented
Feb 12, 2018
I guess we can land in the meantime, but it's vexing. |
Zoxc
commented
Feb 13, 2018
I don't have any ideas about why the test failed. |
Mark-Simulacrum
commented
Feb 13, 2018
This is the reason for the test failure: https://github.com/rust-lang/rust/blob/master/src/tools/compiletest/src/json.rs#L88. Specifically, non-JSON lines in the output are simply ignored by compiletest, which means that any UI test will fail to test this behavior. I think the most straightforward fix here would be to change this to a run-make test. @Zoxc Is there a chance you could make that change? |
Zoxc
commented
Feb 13, 2018
@Mark-Simulacrum So does compiletest ask for JSON output and then convert that into what the stderr output would be? Could we make it also emit the non-JSON lines to this output? |
Mark-Simulacrum
commented
Feb 13, 2018
Actually, now that I do some deeper investigation, it looks like if we put So looks like the fix is even simpler than I thought! |
nikomatsakis
commented
Feb 13, 2018
@Mark-Simulacrum thanks for that! |
nikomatsakis
commented
Feb 13, 2018
@bors r+ |
bors
commented
Feb 13, 2018
📌 Commit 11b74ed has been approved by |
bors
commented
Feb 17, 2018
🔒 Merge conflict |
nikomatsakis
commented
Feb 19, 2018
@Zoxc needs rebase :( |
Zoxc
commented
Feb 20, 2018
@bors r=nikomatsakis |
bors
commented
Feb 20, 2018
📌 Commit 9d3719b has been approved by |
Do not run the default panic hook inside procedural macros. Fixesrust-lang#47812 r? @nikomatsakis
Fixes#47812
r? @nikomatsakis