1
Fork 0

Implement refinement lint for RPITIT

This commit is contained in:
Michael Goulet 2023-09-02 04:02:11 +00:00
parent b0d45536ac
commit e10262ca0a
26 changed files with 483 additions and 21 deletions

View file

@ -222,6 +222,11 @@ hir_analysis_return_type_notation_on_non_rpitit =
.note = function returns `{$ty}`, which is not compatible with associated type return bounds
.label = this function must be `async` or return `impl Trait`
hir_analysis_rpitit_refined = impl trait in impl method signature does not match trait method signature
.suggestion = replace the return type so that it matches the trait
.label = return type from trait method defined here
.unmatched_bound_label = this bound is stronger than that defined on the trait
hir_analysis_self_in_impl_self =
`Self` is not valid in the self type of an impl block
.note = replace `Self` with a different type