Uplift clippy::forget_copy to rustc

This commit is contained in:
Urgau 2023-03-28 18:47:37 +02:00
parent cf6d2272c5
commit 971b9b23b5
5 changed files with 207 additions and 2 deletions

View file

@ -687,6 +687,14 @@ pub struct ForgetRefDiag<'a> {
pub note: Span,
}
#[derive(LintDiagnostic)]
#[diag(lint_forget_copy)]
pub struct ForgetCopyDiag<'a> {
pub arg_ty: Ty<'a>,
#[note]
pub note: Span,
}
// hidden_unicode_codepoints.rs
#[derive(LintDiagnostic)]
#[diag(lint_hidden_unicode_codepoints)]