migrate: noop_method_call.rs

This commit is contained in:
Rejyr 2022-09-05 12:42:58 -04:00
parent 6fb3a38f9b
commit 56fc66d196
2 changed files with 19 additions and 7 deletions

View file

@ -6,6 +6,16 @@ use rustc_span::{Span, Symbol};
use crate::LateContext;
#[derive(LintDiagnostic)]
#[diag(lint_noop_method_call)]
#[note]
pub struct NoopMethodCallDiag<'a> {
pub method: Symbol,
pub receiver_ty: Ty<'a>,
#[label]
pub label: Span,
}
#[derive(LintDiagnostic)]
#[diag(lint_pass_by_value)]
pub struct PassByValueDiag {