migrate: noop_method_call.rs
This commit is contained in:
parent
6fb3a38f9b
commit
56fc66d196
2 changed files with 19 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue