-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustc internal compiler error: bad placeholder type #68162
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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
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 |
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);
}
|
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.
# for free
to join this conversation on GitHub.
Already have an account?
# 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.
Uh oh!
There was an error while loading. Please reload this page.
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: