-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE: can't find an upper bound
in nll::compute_regions in rustc_borrowck
#122704
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
Comments
Regression in nightly-2022-06-08 probably 95565 ? cc @jackh726 |
That PR removed NLL's migrate mode, so maybe the bisection could go further back with with |
can't find an upper bound
in nll::compute_regions in rustc_borrowck
fourth attempt or so... Regression in nightly-2019-03-14 looking for regression commit between 2019-03-13 and 2019-03-14 maybe #59132 ? |
Minimized: trait IsStatic: 'static {}
impl<T: 'static> IsStatic for T {}
fn foo<T>(x: Box<T>) -> Box<dyn for<'a> FnOnce(&'a ()) -> Box<dyn IsStatic + 'a>> {
Box::new(move |_| x)
} Error output
Identical to #125891 except for having |
Rollup merge of rust-lang#139668 - matthewjasper:upper-bound-fix, r=compiler-errors Handle regions equivalent to 'static in non_local_bounds `non_local_bounds` would only find non local bounds that strictly bound a given region, but it's possible that a local region is equated to 'static when showing a type referencing a locally bound lifetime, such as `dyn Any + 'a` in the tests added, is well-formed. In this case we should return 'static. closes rust-lang#122704 closes rust-lang#139004
Code
Meta
rustc --version --verbose
:Error output
The text was updated successfully, but these errors were encountered: