Uh oh!
There was an error while loading. Please reload this page.
Some compare_method tweaks - #106129
Conversation
rustbot
commented
Dec 24, 2022
r? @Nilstrieb (rustbot has picked a reviewer for you, use r? to override) |
| 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.
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.
Noratrieb
commented
Dec 27, 2022
The changes look good but I'm not familiar with the code so I'll r? types for further review. |
e994705 to
96d8011CompareBoxyUwU
commented
Dec 28, 2022
@bors r+ nice to see my FIXME get FIXME'd |
bors
commented
Dec 28, 2022
bors
commented
Dec 28, 2022
bors
commented
Dec 28, 2022
☀️ Test successful - checks-actions |
rust-timer
commented
Dec 28, 2022
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_method3. Remove some unnecessary opaque type handling code --InferCtxtalready is in a mode that doesn't define opaque typesErrorGuaranteedfor region constraint errors incompare_method- Improves a redundant error message in one unit test.compare_methodmodule to have a more general name, since it's more likecompare_impl_item:)collect_trait_impl_trait_tys