-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: 'rustc' failed at 'index out of bounds: the len is 12 but the index is 12 - triggered by number of LoC #14091
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've auto-reduced this down to:
thanks creduce and @regehr! |
macros.rs: #![macro_escape]
macro_rules! assert_ (
($cond:expr, $($arg:expr)+) => (
if !$cond { fail!($($arg),+) }
)
) // 6 lines main.rs: #![feature(macro_rules)]
mod macros;
fn main(){assert_!(1,1)} // 7th line
Seems like something is wrong in filemap. |
I can't repdrouce this no more on master branch: http://is.gd/9Is9bB. |
It's still present with |
The core issue is: the assertion is expanded into |
Was closed by typo |
This also causes the issue. I believe this is the simplest case that causes it. Any fewer new lines and it stops occurring. The text is on the 13th line. You can confirm that the offset in the line doesn't matter by putting the assert! on a newline and deleting one of the new lines before the fn main(). |
It looks like I'm affected by this one too.
Edit: I've fixed my code to use assert_eq!(), which does not trigger the bug for me. |
I'm getting this on the rust playground rustc 1.12.0, using assert!(1, 1) and also vecs. |
Support sysroot library source being defined inside the workspace With this you can now specify `cargo.sysrootSrc`. This is required for the rust workspace such that the `library` folder inside the workspace can be used as the sysroot library sources. We now also recognize if these sources are inside the workspace, tagging the as workspace members. This does duplicate the sysroot crates still, but I don't think that causes too many problems.
) Closes rust-lang#14020 Closes rust-lang#14290 Closes rust-lang#14091 Add checks for unstable const traits. changelog: [`missing_const_for_fn`] fix FP on unstable const traits
Believed current test case
(pnkfelix says: "if you are looking at this bug, please try to keep this test up-to-date ... potentially by checking the newest linked dupes in the comment feed below.")
Original Bug Filed
Script to reproduce:
Backtrace:
Version:
The text was updated successfully, but these errors were encountered: