migrate: pass_by_value.rs
This commit is contained in:
@@ -6,6 +6,14 @@ use rustc_span::{Span, Symbol};
|
||||
|
||||
use crate::LateContext;
|
||||
|
||||
#[derive(LintDiagnostic)]
|
||||
#[diag(lint_pass_by_value)]
|
||||
pub struct PassByValueDiag {
|
||||
pub ty: String,
|
||||
#[suggestion(code = "{ty}", applicability = "maybe-incorrect")]
|
||||
pub suggestion: Span,
|
||||
}
|
||||
|
||||
#[derive(LintDiagnostic)]
|
||||
#[diag(lint_redundant_semicolons)]
|
||||
pub struct RedundantSemicolonsDiag {
|
||||
|
||||
Reference in New Issue
Block a user