-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
ICE: 'index out of bounds: the len is 0 but the index is 0', compiler/rustc_middle/src/ty/mod.rs:893:14 #80062
Comments
Issue: rust-lang/rust#80062
Issue: rust-lang/rust#80062
The ice happens since 1.41 |
I'd be interested in taking a look into this |
FWIW, this has nothing to do with the fn sof<T>() -> T { todo!() }
fn test<T>() {
let _: [u8; sof::<T>()];
} Which gives the following error
|
Assigning |
I suspect #66014 is the culprit for this regression. EDIT: confirmed this regressed in nightly-2019-11-07 (1423bec...3804876) which contains #66014 |
I think this is due to rustc trying to access the generics in the |
Triage: The current output with the latest nightly:
with
Neither snippet is ICE. |
Rollup of 9 pull requests Successful merges: - rust-lang#78934 (refactor: removing library/alloc/src/vec/mod.rs ignore-tidy-filelength) - rust-lang#79479 (Add `Iterator::intersperse`) - rust-lang#80128 (Edit rustc_ast::ast::FieldPat docs) - rust-lang#80424 (Don't give an error when creating a file for the first time) - rust-lang#80458 (Some Promotion Refactoring) - rust-lang#80488 (Do not create dangling &T in Weak<T>::drop) - rust-lang#80491 (Miri: make size/align_of_val work for dangling raw ptrs) - rust-lang#80495 (Rename kw::Invalid -> kw::Empty) - rust-lang#80513 (Add regression test for rust-lang#80062) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Sorry if this is a duplicate. I tried to search but failed to fine a duplicate one.
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: