Let lint_forgetting_copy_types give the suggestion if possible.
This commit is contained in:
parent
ca68c93135
commit
d7f0d1f564
7 changed files with 113 additions and 5 deletions
|
@ -714,11 +714,12 @@ pub struct ForgetRefDiag<'a> {
|
|||
|
||||
#[derive(LintDiagnostic)]
|
||||
#[diag(lint_forgetting_copy_types)]
|
||||
#[note]
|
||||
pub struct ForgetCopyDiag<'a> {
|
||||
pub arg_ty: Ty<'a>,
|
||||
#[label]
|
||||
pub label: Span,
|
||||
#[subdiagnostic]
|
||||
pub sugg: IgnoreDropSuggestion,
|
||||
}
|
||||
|
||||
#[derive(LintDiagnostic)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue