Improve error for self: Box<self>
This commit is contained in:
parent
4d941cd981
commit
3851a4bb91
9 changed files with 63 additions and 25 deletions
|
@ -442,6 +442,14 @@ pub(crate) struct InvalidAsmSym {
|
|||
pub(crate) span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(resolve_lowercase_self)]
|
||||
pub(crate) struct LowercaseSelf {
|
||||
#[primary_span]
|
||||
#[suggestion(code = "Self", applicability = "maybe-incorrect", style = "short")]
|
||||
pub(crate) span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(resolve_trait_impl_duplicate, code = "E0201")]
|
||||
pub(crate) struct TraitImplDuplicate {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue