-
Notifications
You must be signed in to change notification settings - Fork 13.3k
access outside the bounds for given AllocRange #131046
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
Labels
C-bug
Category: This is a bug.
F-associated_const_equality
`#![feature(associated_const_equality)]`
F-generic_const_items
`#![feature(generic_const_items)]`
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.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Little bit reduced: #![feature(associated_const_equality, generic_const_items)]
#![allow(incomplete_features)]
fn foo() {}
#![abcd]
trait Owner {
const C<const N: u32>: u32;
}
impl Owner for () {
const C<const N: u32>: u32 = N;
}
fn take0<const N: usize>(_: impl Owner<C<N> = { N }>) {}
fn main() {
take0::<128>(());
} |
Slightly less: trait Owner {
const C<const N: u32>: u32;
}
impl Owner for () {
const C<const N: u32>: u32 = N;
}
fn take0<const N: u64>(_: impl Owner<C<N> = { N }>) {}
fn main() {
take0::<128>(());
} |
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`
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
C-bug
Category: This is a bug.
F-associated_const_equality
`#![feature(associated_const_equality)]`
F-generic_const_items
`#![feature(generic_const_items)]`
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.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Meta
rustc --version --verbose
:Error output
Backtrace
Note
Ice location:
rust/compiler/rustc_middle/src/mir/interpret/allocation.rs
Lines 257 to 271 in 7608018
The text was updated successfully, but these errors were encountered: