1
Fork 0

Uplift clippy::drop_copy to rustc

This commit is contained in:
Urgau 2023-03-27 20:59:59 +02:00
parent 3d1940d02e
commit 156f5563c7
5 changed files with 248 additions and 2 deletions

View file

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