We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f7d7d7 + 62ddefc commit b14114fCopy full SHA for b14114f
CHANGELOG.md
@@ -1,7 +1,8 @@
1
# Change Log
2
All notable changes to this project will be documented in this file.
3
4
-## 0.0.79 — ?
+## 0.0.79 — 2016-07-10
5
+* Rustup to *rustc 1.12.0-nightly (f93aaf84c 2016-07-09)*
6
* Major suggestions refactoring
7
8
## 0.0.78 — 2016-07-02
Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "clippy"
-version = "0.0.78"
+version = "0.0.79"
authors = [
"Manish Goregaokar <[email protected]>",
"Andre Bogus <[email protected]>",
@@ -25,7 +25,7 @@ test = false
25
26
[dependencies]
27
# begin automatic update
28
-clippy_lints = { version = "0.0.78", path = "clippy_lints" }
+clippy_lints = { version = "0.0.79", path = "clippy_lints" }
29
# end automatic update
30
31
[dev-dependencies]
clippy_lints/Cargo.toml
@@ -1,7 +1,7 @@
name = "clippy_lints"
clippy_lints/src/copies.rs
@@ -253,7 +253,6 @@ fn bindings<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, pat: &Pat) -> HashMap<Interned
253
}
254
255
PatKind::Lit(..) |
256
- PatKind::QPath(..) |
257
PatKind::Range(..) |
258
PatKind::Wild |
259
PatKind::Path(..) => (),
clippy_lints/src/matches.rs
@@ -202,7 +202,7 @@ fn check_single_match_opt_like(cx: &LateContext, ex: &Expr, arms: &[Arm], expr:
202
path.to_string()
203
204
PatKind::Binding(BindByValue(MutImmutable), ident, None) => ident.node.to_string(),
205
- PatKind::Path(ref path) => path.to_string(),
+ PatKind::Path(None, ref path) => path.to_string(),
206
_ => return,
207
};
208
clippy_lints/src/utils/hir.rs
@@ -148,11 +148,10 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
148
(&PatKind::Binding(ref lb, ref li, ref lp), &PatKind::Binding(ref rb, ref ri, ref rp)) => {
149
lb == rb && li.node.as_str() == ri.node.as_str() && both(lp, rp, |l, r| self.eq_pat(l, r))
150
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)
+ (&PatKind::Path(ref ql, ref l), &PatKind::Path(ref qr, ref r)) => {
+ both(ql, qr, |ql, qr| self.eq_qself(ql, qr)) && self.eq_path(l, r)
155
+ (&PatKind::Lit(ref l), &PatKind::Lit(ref r)) => self.eq_expr(l, r),
156
(&PatKind::Tuple(ref l, ls), &PatKind::Tuple(ref r, rs)) => {
157
ls == rs && over(l, r, |l, r| self.eq_pat(l, r))
158
0 commit comments