-
Notifications
You must be signed in to change notification settings - Fork 13k
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 immediate Scalar(alloc1) does not fit to layout TyAndLayout
#121176
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-mir-opt
Area: MIR optimizations
A-mir-opt-inlining
Area: MIR inlining
C-bug
Category: This is a bug.
F-trivial_bounds
`#![feature(trivial_bounds)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-debug-assertions
This issue requires a build of rustc or tooling with debug-assertions in some way
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
matthiaskrgr
added
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
C-bug
Category: This is a bug.
requires-debug-assertions
This issue requires a build of rustc or tooling with debug-assertions in some way
labels
Feb 16, 2024
rustbot
added
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Feb 16, 2024
Program output
|
jieyouxu
added
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Feb 16, 2024
This also triggers on code that compiles with mir inlining: auto-reduced (treereduce-rust): #![feature(trivial_bounds)]
use std::fmt::Debug;
pub fn foo()
where
Vec<str>: Debug,
str: Copy,
{
let x = vec![*"1"];
println!("{:?}", x);
}
original: //@ run-pass
// Test that inconsistent bounds are used in well-formedness checks
#![feature(trivial_bounds)]
use std::fmt::Debug;
pub fn foo() where Vec<str>: Debug, str: Copy {
//~^ WARNING Debug does not depend on any type or lifetime
//~| WARNING Copy does not depend on any type or lifetime
let x = vec![*"1"];
println!("{:?}", x);
}
fn main() {} Version information
Command: Program output
|
matthiaskrgr
added
A-mir-opt
Area: MIR optimizations
A-mir-opt-inlining
Area: MIR inlining
F-trivial_bounds
`#![feature(trivial_bounds)]`
labels
Feb 19, 2024
matthiaskrgr
added
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
C-bug
Category: This is a bug.
and removed
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
C-bug
Category: This is a bug.
requires-debug-assertions
This issue requires a build of rustc or tooling with debug-assertions in some way
labels
Dec 12, 2024
@rustbot label: +I-ICE +T-compiler +C-bug +S-bug-has-test +requires-debug-assertions |
rustbot
added
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-debug-assertions
This issue requires a build of rustc or tooling with debug-assertions in some way
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Dec 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-mir-opt
Area: MIR optimizations
A-mir-opt-inlining
Area: MIR inlining
C-bug
Category: This is a bug.
F-trivial_bounds
`#![feature(trivial_bounds)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-debug-assertions
This issue requires a build of rustc or tooling with debug-assertions in some way
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
snippet:
Version information
Command:
/home/matthias/.rustup/toolchains/local-debug-assertions/bin/rustc
The text was updated successfully, but these errors were encountered: