-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Some compare_method
tweaks
#106129
Some compare_method
tweaks
#106129
Conversation
r? @Nilstrieb (rustbot has picked a reviewer for you, use r? to override) |
@@ -16,28 +16,8 @@ LL | type B<'a, 'b> where 'a: 'b; | |||
LL | type B<'a, 'b> = (&'a(), &'b ()) where 'b: 'a; | |||
| ^^ impl has extra requirement `'b: 'a` | |||
|
|||
error[E0478]: lifetime bound 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.
This error is now not emitted since we return ErrorGuaranteed
in compare_type_predicate_entailment
, which means we never get to check_type_bounds
which is where this error is reported.
The changes look good but I'm not familiar with the code so I'll r? types for further review. |
e994705
to
96d8011
Compare
@bors r+ nice to see my FIXME get FIXME'd |
☀️ Test successful - checks-actions |
Finished benchmarking commit (83a28ef): 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)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. |
…n-err, r=estebank Make trait/impl `where` clause mismatch on region error a bit more actionable Improve `where` clause suggestions for GATs/methods that have incompatible region predicates in their `where` clauses. Also addresses this diagnostic that went away rust-lang#106129 (comment)
…n-err, r=estebank Make trait/impl `where` clause mismatch on region error a bit more actionable Improve `where` clause suggestions for GATs/methods that have incompatible region predicates in their `where` clauses. Also addresses this diagnostic that went away rust-lang#106129 (comment)
…s, r=BoxyUwU Some `compare_method` tweaks 1. Make some of the comparison functions' names more regular 2. Reduce pub scope of some of the things in `compare_method` ~3. Remove some unnecessary opaque type handling code -- `InferCtxt` already is in a mode that doesn't define opaque types~ * moved to a different PR 4. Bubble up `ErrorGuaranteed` for region constraint errors in `compare_method` - Improves a redundant error message in one unit test. 5. Move the `compare_method` module to have a more general name, since it's more like `compare_impl_item` :) 6. Rename `collect_trait_impl_trait_tys`
compare_method
3. Remove some unnecessary opaque type handling code --InferCtxt
already is in a mode that doesn't define opaque typesErrorGuaranteed
for region constraint errors incompare_method
- Improves a redundant error message in one unit test.compare_method
module to have a more general name, since it's more likecompare_impl_item
:)collect_trait_impl_trait_tys