-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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: did not expect inference variables here
#133066
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
S-has-bisection
Status: a bisection has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Isn't this the same as #131406? |
stacktrace is different, query stack is different, code is different, bisection points to a different PR, so I'm inclined to say its a different case |
Needs an error minimization. |
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Mar 4, 2025
…try> Ensure constants are WF before calling into CTFE Fixes rust-lang#127643 Fixes rust-lang#131046 Fixes rust-lang#131406 Fixes rust-lang#133066 I'll write a PR desc for this tommorow r? `@ghost`
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Mar 4, 2025
…try> Ensure constants are WF before calling into CTFE Fixes rust-lang#127643 Fixes rust-lang#131046 Fixes rust-lang#131406 Fixes rust-lang#133066 I'll write a PR desc for this tommorow r? `@ghost`
Error-minimized: #![feature(generic_const_items)]
#![feature(associated_const_equality)]
trait Trait {
const C<const N: u32>: u32;
}
impl Trait for () {
const C<const N: u32>: u32 = 0;
}
fn take0<const N: u64>(_: impl Trait<C<N> = 0>){
}
fn main() {
take0(());
} Which is essentially the same as what BoxyUwU already has in the pending #137972 @rustbot label: -E-needs-mcve |
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Mar 13, 2025
…try> Ensure constants are WF before calling into CTFE Fixes rust-lang#127643 Fixes rust-lang#131046 Fixes rust-lang#131406 Fixes rust-lang#133066 I'll write a PR desc for this tommorow r? `@ghost`
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Mar 13, 2025
…try> Ensure constants are WF before calling into CTFE Fixes rust-lang#127643 Fixes rust-lang#131046 Fixes rust-lang#131406 Fixes rust-lang#133066 I'll write a PR desc for this tommorow r? `@ghost`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
S-has-bisection
Status: a bisection has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
auto-reduced (treereduce-rust):
original:
Version information
Possibly related line of code:
rust/compiler/rustc_middle/src/mir/interpret/queries.rs
Lines 99 to 111 in 251dc8a
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
The text was updated successfully, but these errors were encountered: