-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE in librustc_resolve/macros.rs #36575
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
I can reproduce it with the vorbis crate. |
Err sorry, its my crate lewton which shows the bug. |
This could be fixed by the next nightly (not sure without looking at the code). |
Minified example that reproduces the issue: fn main() {
let mut a = 0;
macro_rules! b {
(-$x:expr) => a
}
b![-1] = b![-0];
} |
That probably won't be fixed by the next nightly, cc @jseyfried. Edit: Or maybe it will, the previous PR was more expansive than I thought. |
It's still failing on Travis up through today, but I'll report back tomorrow. |
Even more minified, and made compile on rust stable/beta: fn main() {
let mut a = 0;
macro_rules! b { () => {a} }
b![] = b![];
} |
This should be fixed by #36555. |
Awesome! |
I can confirm that this bug is fixed in rust nightly version |
Close or needstest? On Sep 20, 2016 11:41, "Eduard-Mihai Burtescu" [email protected]
|
#36555 already added a test, as far as I can tell. |
New ICE in nightly, found by Travis. This is a regression (works on stable and beta). The first nightly that fails is
rustc 1.13.0-nightly (1265cbf4e 2016-09-15)
(that is, nightly-2016-09-16).Backtrace:
The text was updated successfully, but these errors were encountered: