-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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_mir::borrow_check::region_infer::RegionInferenceContext::find_outlives_blame_span called Option::unwrap()
on a None
value
#80772
Comments
On taking another look at the issues I found before filing this one, it looks like #74599 might be the same thing, as it has a similar stack trace. That code sample requires nightly, however, and this one does not. From a superficial examination (I know nothing about the compiler internals), both issues involve:
|
This also reproduces the ICE: trait SomeTrait {}
struct Exhibit {
constant: bool,
factory: fn(&usize) -> Box<dyn SomeTrait>,
}
const A_CONSTANT: &[Exhibit] = &[
Exhibit {
constant: "".is_empty(),
factory: |_| unimplemented!(),
},
Exhibit {
constant: "".is_empty(),
factory: |_| unimplemented!(),
},
]; |
Regression was too long ago to bisect to an individual commit, but the commit range is e87a205...bbb664a. |
Assigning |
It looks like the ICE was introduced with #66642 / bbb664a. The Issue #74599, mentioned above by @kpreid, is triggered by a |
Actually it looks like f9ed219 is the first commit with this issue |
This is no longer ICE with the latest nightly, I think #88698 is the fix. Marking as |
…acrum Add a regression test for rust-lang#80772 Closes rust-lang#80772
Rollup of 8 pull requests Successful merges: - rust-lang#86455 (check where-clause for explicit `Sized` before suggesting `?Sized`) - rust-lang#90801 (Normalize both arguments of `equate_normalized_input_or_output`) - rust-lang#90803 (Suggest `&str.chars()` on attempt to `&str.iter()`) - rust-lang#90819 (Fixes incorrect handling of TraitRefs when emitting suggestions.) - rust-lang#90910 (fix getting the discriminant of a zero-variant enum) - rust-lang#90925 (rustc_mir_build: reorder bindings) - rust-lang#90928 (Use a different server for checking clock drift) - rust-lang#90936 (Add a regression test for rust-lang#80772) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Code
On playground
Meta
rustc --version --verbose
:Also happens on 1.48.0 and nightly.
Error output
Backtrace
The text was updated successfully, but these errors were encountered: