-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE from syntax codemap for particular line counts, perhaps intertwined with macro expansion #18275
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
Comments
Here is some more debugging context info, made with a different build I made locally to use as a debuggable stage0:
|
Closing as a dupe of #14091. |
I think we've had this reported at least 20 times now. I think it has to do with cross-crate macros not being properly mapped in the codemap but I haven't investigated closely. |
lnicola
pushed a commit
to lnicola/rust
that referenced
this issue
Oct 17, 2024
Skip #[test_case] expansion Fixes rust-lang#18274, although I don't fully understand if this is the best fix (it's not clear to me why this didn't cause issues before rust-lang/rust-analyzer#18085).
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was hitting an ICE from the snapshot compiler while trying to build
rustc
. That's never fun, especially when it cannot provide very clear source location information.Here is my reduced test case:
playpen link: http://is.gd/fmyjCb
Now, once you have the test reduced to something this small, its clear what the problem in the above code actually is (namely, we are passing a non-boolean expression that is not overloaded on the
!
-operator as the first argument toassert!
). But the issue is that this causes an ICE in a particularly nasty fashion.Running the above yields (in both the playpen and my laptop):
Unfortunately, as the test says, the test is very sensitive to particular choices for where the erroneous lines happen to fall. So it would be good for someone to investigate this at some point against this version of
rustc
(i'm runningrustc 0.13.0-dev (e8cc3f26e 2014-10-21 08:22:09 +0000)
; I don't know how to find what the playpen is using); if we simply wait a few versions and then re-test, this particular test may start succeeding but a nearby variant may still (or start to) fail.The text was updated successfully, but these errors were encountered: