-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
rustc panics during compilation #23217
Comments
The bug is that pub enum SomeEnum {
B = SomeEnum::A,
}
fn main() {} |
Thanks for noticing that, @Stebalien ! Much better test case, and allows me to fix my code so I'm not blocked. |
I am seeing this same bug with an undefined type. Seems to be the same as above, so not including a test case. This is on the nightly channel.
|
I was not able to reproduce the minimal test case as an ICE. Now it returns a compiler error:
|
Same. 👍 |
I tried this code:
Then ran this command:
I expected to see successful compilation followed by tests running.
Instead, this happened:
Meta
rustc --version --verbose
:rustc 1.0.0-nightly (2fc8b1e 2015-03-07) (built 2015-03-08)
binary: rustc
commit-hash: 2fc8b1e
commit-date: 2015-03-07
build-date: 2015-03-08
host: x86_64-pc-windows-gnu
release: 1.0.0-nightly
Backtrace:
1: 0x71217094 - sys::backtrace::write::h669f8e0f2a2c73f7UVA
2: 0x71231708 - rt::unwind::register::hcda86f4971e7940bZpJ
3: 0x71183427 - rt::unwind::begin_unwind_inner::ha77dc9ac3cfb5574onJ
4: 0x71183beb - rt::unwind::begin_unwind_fmt::h8ea5d25622c032c4ZlJ
5: 0x15991f7 - middle::const_eval::eval_const_expr_partial::ha9d8d88f013a10ad7lh
6: 0x1597788 - middle::const_eval::eval_const_expr_partial::ha9d8d88f013a10ad7lh
7: 0x1597baa - middle::const_eval::eval_const_expr_partial::ha9d8d88f013a10ad7lh
The text was updated successfully, but these errors were encountered: