-
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: symbol-mangling-version=v0 attempt to subtract with overflow #130011
Labels
A-lifetimes
Area: Lifetimes / regions
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
dtolnay
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.
labels
Sep 6, 2024
rustbot
added
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Sep 6, 2024
A smaller repro without involving trait Fun<'v> {
type Assoc;
}
trait Trait: for<'v> Fun<'v, Assoc = &'v ()> {}
fn main() {
let _ = core::ptr::drop_in_place::<dyn Trait> as usize;
} |
saethlin
added
A-lifetimes
Area: Lifetimes / regions
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Sep 7, 2024
Bisects to #97597 in Rust 1.63. FYI @tmiasko @RalfJung $ git checkout 6277c3a9441
$ python3 x.py build library/std --stage 1
$ build/x86_64-unknown-linux-gnu/stage1/bin/rustc repro.rs --edition=2021 -Csymbol-mangling-version=v0
# ICE
$ git checkout HEAD^
$ python3 x.py build library/std --stage 1
$ build/x86_64-unknown-linux-gnu/stage1/bin/rustc repro.rs --edition=2021 -Csymbol-mangling-version=v0
# success |
dtolnay
added
the
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
label
Sep 7, 2024
rustbot
added
the
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
label
Sep 7, 2024
Oh that's only an artifact of the |
dtolnay
removed
the
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
label
Sep 7, 2024
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-medium |
rustbot
added
P-medium
Medium priority
and removed
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
labels
Oct 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-lifetimes
Area: Lifetimes / regions
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
using a rustc built from current master, with the following added to config.toml to enable overflow checks:
Error output
rustc --edition=2021 main.rs -Csymbol-mangling-version=v0
This is the subtraction:
rust/compiler/rustc_symbol_mangling/src/v0.rs
Line 298 in 9c01301
Backtrace
Tracking issue for v0 symbol mangling: #60705
The text was updated successfully, but these errors were encountered: