-
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
rustc internal compiler error: bad placeholder type #68162
Labels
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
JohnTitor
added
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
C-bug
Category: This is a bug.
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
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.
labels
Jan 13, 2020
Minified: fn one() -> u32 {
1
}
fn main() {
static SOME_STATIC: Option<_> = unimplemented!();
SOME_STATIC.map(|_| one());
} @rustbot modify labels: -E-needs-mcve E-needs-bisection requires-nightly |
rustbot
added
E-needs-bisection
Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
requires-nightly
This issue requires a nightly compiler in some way.
and removed
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
labels
Jan 13, 2020
rustbot
removed
the
E-needs-bisection
Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
label
Jan 13, 2020
Another ICE, which is very related and should be added as a seperate testcase is this: fn one(_: u32) -> u32 {
1
}
fn main() {
static SOME_STATIC: Option<_> = unimplemented!();
SOME_STATIC.map(one);
}
|
jonas-schievink
added
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
requires-nightly
This issue requires a nightly compiler in some way.
and removed
requires-nightly
This issue requires a nightly compiler in some way.
labels
Jan 13, 2020
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this issue
Jan 15, 2020
Account for `Path`s in `is_suggestable_infer_ty` Fix rust-lang#68162.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code causes a compiler crash:
Replacing
spin::Once<_>
withspin::Once<u32>
works properly.Rust version:
Full output:
The text was updated successfully, but these errors were encountered: