1
Fork 0

Let lint_forgetting_copy_types give the suggestion if possible.

This commit is contained in:
surechen 2024-05-25 11:04:13 +08:00
parent ca68c93135
commit d7f0d1f564
7 changed files with 113 additions and 5 deletions

View file

@ -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)]