uplift clippy::clone_double_ref as suspicious_double_ref_op

This commit is contained in:
Deadbeef 2023-04-28 17:17:46 +00:00
parent 1a6ae3d692
commit 5c99175a9e
19 changed files with 230 additions and 199 deletions

View file

@ -1150,6 +1150,14 @@ pub struct NoopMethodCallDiag<'a> {
pub label: Span,
}
#[derive(LintDiagnostic)]
#[diag(lint_suspicious_double_ref_op)]
pub struct SuspiciousDoubleRefDiag<'a> {
pub call: Symbol,
pub ty: Ty<'a>,
pub op: &'static str,
}
// pass_by_value.rs
#[derive(LintDiagnostic)]
#[diag(lint_pass_by_value)]