Skip to content

ICE on invalid assert! invocation #17600

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

Closed
mitsuhiko opened this issue Sep 27, 2014 · 2 comments
Closed

ICE on invalid assert! invocation #17600

mitsuhiko opened this issue Sep 27, 2014 · 2 comments

Comments

@mitsuhiko
Copy link
Contributor

This code currently causes an ICE:

assert!(1i32, 0i32);

Looks like this:

<std macros>:8:12: 21:21 error: mismatched types: expected `bool`, found `i32` (expected bool, found i32)
<std macros>:8         if !$cond {
<std macros>:9             fail!($($arg),+)
<std macros>:10         }
<std macros>:11     );
<std macros>:12 )
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'index out of bounds: the len is 12 but the index is 12', /build/rust-git/src/rust/src/libsyntax/lib.rs:1
@ghost
Copy link

ghost commented Sep 27, 2014

Dupe of #15901

@alexcrichton
Copy link
Member

Thanks @jakub-!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants