Skip to content

Calling debug_assert! with two arguments causes ICE #18850

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
ghost opened this issue Nov 10, 2014 · 1 comment
Closed

Calling debug_assert! with two arguments causes ICE #18850

ghost opened this issue Nov 10, 2014 · 1 comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@ghost
Copy link

ghost commented Nov 10, 2014

The following code results in a panic:

//
//
//
//
//
// No error if the file is too short
//
//
//
//
// line 11
fn main() {
    debug_assert!( "me", "me" );
}

producing

task 'rustc' panicked at 'index out of bounds: the len is 12 but the index is 12', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/lib.rs:1
@huonw
Copy link
Member

huonw commented Nov 10, 2014

Dupe of #14091, thanks for filing!

@huonw huonw closed this as completed Nov 10, 2014
@huonw huonw added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Nov 10, 2014
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) ❄️
Projects
None yet
Development

No branches or pull requests

1 participant