-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Internal compiler error: 'index out of bounds' #10905
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
This is likely because some dependencies were not rebuilt or have fallen out of date. If you recompile relevant dependencies, does this error go away? |
Oh, you're right (sort of): rebuilding the library didn't do it, but I wasn't correctly adding the directory it was in. Why isn't there an error saying something like "dependency not found"? |
An old version must have been found in some other system directory (possibly very far out of date). It looks like this bug is a dupe of #10207 in this case. Thanks again for the bug report by the way! |
[`redundant_closure`]: special case inclusive ranges Fixes rust-lang#10684. `x..=y` ranges need a bit of special handling in this lint because it desugars to a call to the lang item `RangeInclusiveNew`, where the callee span would be the same as the range expression itself, so the suggestion looked a bit weird. It now correctly suggests `RangeInclusive::new`. changelog: [`redundant_closure`]: special case `RangeInclusive`
When trying to compile this code, I get the following error:
Note that this requires nalgebra, which I had compiled just previously in my ~/.rust directory (different from the attached Gist file).
Also, I did
try running with RUST_LOG=rustc=1
, but I could see no difference; I'll file a separate bug report for that.One more note: when I stripped this file down, the compiler error changed; it used to say
task 'rustc' failed at 'lookup_item: id not found: 74888', /build/rust-git/src/rust/src/librustc/metadata/decoder.rs:91
/The text was updated successfully, but these errors were encountered: