-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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: lifetime in type in const-expr in len of array-type [T; len]: cannot convert ReEarlyBound #66152
Comments
Also happens on nightly |
ICE reproduces all the way back to 1.36.0; before that, it still ICEs but in a different place. |
Maximal reduction: fn main() {}
const fn foo<T>() -> usize { 0 }
struct S<'a> {
beta: [(); foo::<&'a ()>()],
} ICE arises in:
Blame: @nikomatsakis |
I suspect this is a duplicate of #64173. But the test case is slightly different so I'll leave it open for now |
triage: P-medium (via analogy with priority on #64173), removing nomination label. |
Triage: |
…=compiler-errors Add a regression test for rust-lang#64173 and rust-lang#66152 Closes rust-lang#64173 Closes rust-lang#66152 Mixed the code as the root cause seems the same.
…=compiler-errors Add a regression test for rust-lang#64173 and rust-lang#66152 Closes rust-lang#64173 Closes rust-lang#66152 Mixed the code as the root cause seems the same.
…piler-errors Rollup of 7 pull requests Successful merges: - rust-lang#96174 (mark ptr-int-transmute test as no_run) - rust-lang#96639 (Fix typo in `offset_from` documentation) - rust-lang#96704 (Add rotation animation on settings button when loading) - rust-lang#96730 (Add a regression test for rust-lang#64173 and rust-lang#66152) - rust-lang#96741 (Improve settings loading strategy) - rust-lang#96744 (Implement [OsStr]::join) - rust-lang#96747 (Add `track_caller` to `DefId::expect_local()`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
When trying to compile the following code, a panic occurs on
librustc_mir
:Backtrace
RUST_BACKTRACE=1 cargo run +stable --verbose
The text was updated successfully, but these errors were encountered: