uplift clippy::clone_double_ref
as suspicious_double_ref_op
This commit is contained in:
parent
1a6ae3d692
commit
5c99175a9e
19 changed files with 230 additions and 199 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue