-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
ICE: Defn conflict #40136
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
A bit minified: macro_rules! make {
($n:expr) => {
impl Foo for Bar {
const C: Vec<i32> = vec![0; $n];
}
}
}
make!(4); Also, technically this is a regression from stable to stable (error -> ice). |
TimNN
added
the
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
label
Feb 28, 2017
frewsxcv
added
the
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
label
Feb 28, 2017
TimNN
added
the
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
label
Feb 28, 2017
cc @eddyb -- looks related to in-demand maybe? |
I'd think @jseyfried might know something in the macro refactors that can cause this. |
Further minified: #![feature(associated_consts)]
macro_rules! m { () => { 0 } }
struct S;
impl S {
const C: i32 = m!(); // Replacing `m!()` with `0` compiles
} I suspect this was caused by my macro modularization groundwork (probably one of the "miscellaneous groundwork" PRs from #35896 (comment)) -- I'll investigate ASAP. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Rust version:
> ./build/x86_64-apple-darwin/stage1/bin/rustc --version rustc 1.17.0-dev (5ac7a035a 2017-02-26)
The code:
Which gives:
The text was updated successfully, but these errors were encountered: