Skip to content

Commit 3a201f4

Browse files
committed
Rustup to rustc 1.12.0-nightly (f93aaf8 2016-07-09)
1 parent 1f7d7d7 commit 3a201f4

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

clippy_lints/src/copies.rs

-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ fn bindings<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, pat: &Pat) -> HashMap<Interned
253253
}
254254
}
255255
PatKind::Lit(..) |
256-
PatKind::QPath(..) |
257256
PatKind::Range(..) |
258257
PatKind::Wild |
259258
PatKind::Path(..) => (),

clippy_lints/src/matches.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ fn check_single_match_opt_like(cx: &LateContext, ex: &Expr, arms: &[Arm], expr:
202202
path.to_string()
203203
}
204204
PatKind::Binding(BindByValue(MutImmutable), ident, None) => ident.node.to_string(),
205-
PatKind::Path(ref path) => path.to_string(),
205+
PatKind::Path(None, ref path) => path.to_string(),
206206
_ => return,
207207
};
208208

clippy_lints/src/utils/hir.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,10 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
148148
(&PatKind::Binding(ref lb, ref li, ref lp), &PatKind::Binding(ref rb, ref ri, ref rp)) => {
149149
lb == rb && li.node.as_str() == ri.node.as_str() && both(lp, rp, |l, r| self.eq_pat(l, r))
150150
}
151-
(&PatKind::Path(ref l), &PatKind::Path(ref r)) => self.eq_path(l, r),
152-
(&PatKind::Lit(ref l), &PatKind::Lit(ref r)) => self.eq_expr(l, r),
153-
(&PatKind::QPath(ref ls, ref lp), &PatKind::QPath(ref rs, ref rp)) => {
154-
self.eq_qself(ls, rs) && self.eq_path(lp, rp)
151+
(&PatKind::Path(ref ql, ref l), &PatKind::Path(ref qr, ref r)) => {
152+
both(ql, qr, |ql, qr| self.eq_qself(ql, qr)) && self.eq_path(l, r)
155153
}
154+
(&PatKind::Lit(ref l), &PatKind::Lit(ref r)) => self.eq_expr(l, r),
156155
(&PatKind::Tuple(ref l, ls), &PatKind::Tuple(ref r, rs)) => {
157156
ls == rs && over(l, r, |l, r| self.eq_pat(l, r))
158157
}

0 commit comments

Comments
 (0)