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:
Mark Rousskov 2019-10-10 21:46:22 -04:00 committed by flip1995
parent 87536f00e3
commit 7e77f3c29f
No known key found for this signature in database
GPG key ID: 693086869D506637
4 changed files with 1149 additions and 854 deletions

File diff suppressed because it is too large Load diff

View file

@ -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,
}