-
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
Do not overwrite lifetime binders for another HirId. #101454
Conversation
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
@@ -0,0 +1,18 @@ | |||
error[E0277]: the trait bound `for<'b> for<'b> fn(&'b ()): Foo` is not satisfied |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diagnostic looks a bit silly. I don't know why we are choosing a 'b
for the inner param.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit of a shame.
☔ The latest upstream changes (presumably #102306) made this pull request unmergeable. Please resolve the merge conflicts. |
c7a0220
to
337a73d
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1952568
to
dd69ce3
Compare
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (307dd93): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. |
Do not overwrite lifetime binders for another HirId. This PR makes higher-ranked bounds in where clauses a bit more principled. We used to conflate `for<'a> T: Trait` with `(for<'a> T): Trait`. This PR separates both binders. This caused issued with fn types, which have their own binder, causing us to overwrite the predicates's binders with `fn`'s binders, ICEing. Fixes rust-lang#98594
This PR makes higher-ranked bounds in where clauses a bit more principled.
We used to conflate
for<'a> T: Trait
with(for<'a> T): Trait
.This PR separates both binders.
This caused issued with fn types, which have their own binder, causing us to overwrite the predicates's binders with
fn
's binders, ICEing.Fixes #98594