Implement refinement lint for RPITIT
This commit is contained in:
parent
b0d45536ac
commit
e10262ca0a
26 changed files with 483 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue