update to the rust-PR that unblocks clippy

This commit is contained in:
Oliver Schneider 2016-12-07 13:13:40 +01:00
parent 4a05fbba3e
commit 778ce4dfd3
No known key found for this signature in database
GPG key ID: 56D6EEA0FC67AC46
66 changed files with 217 additions and 217 deletions

View file

@ -32,8 +32,8 @@ impl LintPass for Pass {
}
}
impl LateLintPass for Pass {
fn check_expr<'a, 'tcx: 'a>(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
// search for `&vec![_]` expressions where the adjusted type is `&[_]`
if_let_chain!{[
let ty::TypeVariants::TyRef(_, ref ty) = cx.tcx.tables().expr_ty_adjusted(expr).sty,