-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
don't ICE on higher ranked hidden types #113575
Conversation
This comment has been minimized.
This comment has been minimized.
ci is broken for unrelated reasons 😓 |
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.
r=me after rebase
@@ -791,6 +791,9 @@ impl<'tcx> RegionInferenceContext<'tcx> { | |||
member_constraint_index: NllMemberConstraintIndex, | |||
choice_regions: &[ty::RegionVid], | |||
) -> bool { |
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.
two thoughts:
- the
bool
is unused by the only caller, can change the return type to()
. - can you add a comment that this only adds the member constraints to the region graph and that we don't check them here but instead in
check_member_constraints
after the region graph has been computed?
0e773f5
to
d55522a
Compare
I rebased, blessed and addressed the review comment @bors r=lcnr |
☀️ Test successful - checks-actions |
Finished benchmarking commit (03181e0): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 649.353s -> 649.27s (-0.01%) |
This shouldn't allow more code to compile, only replaces the ICE with a nicer error message.
Fixes #97098.
Fixes #97099.
Fixes #108399
Fixes #104196
Fixes #113481
Fixes #103186
Fixes #100818
r? @lcnr (because you showed interest in #100503 :)