Update clippy for latest rustc changes
Specifically, this revises the clippy integration to utilize a new callback to register its lints, as the prior editing of lint store in Session is no longer possible.
This commit is contained in:
parent
87536f00e3
commit
7e77f3c29f
4 changed files with 1149 additions and 854 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -54,6 +54,7 @@ declare_clippy_lint! {
|
|||
"functions taking small copyable arguments by reference"
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct TriviallyCopyPassByRef {
|
||||
limit: u64,
|
||||
}
|
||||
|
|
@ -159,7 +160,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for TriviallyCopyPassByRef {
|
|||
return;
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
FnKind::Method(..) => (),
|
||||
_ => return,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue