Merge pull request #1084 from Manishearth/rustup
Rustup to rustc 1.12.0-nightly (f93aaf84c
2016-07-09) and bump to 0.0.79
This commit is contained in:
commit
b14114f253
@ -1,7 +1,8 @@
|
||||
# Change Log
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## 0.0.79 — ?
|
||||
## 0.0.79 — 2016-07-10
|
||||
* Rustup to *rustc 1.12.0-nightly (f93aaf84c 2016-07-09)*
|
||||
* Major suggestions refactoring
|
||||
|
||||
## 0.0.78 — 2016-07-02
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "clippy"
|
||||
version = "0.0.78"
|
||||
version = "0.0.79"
|
||||
authors = [
|
||||
"Manish Goregaokar <manishsmail@gmail.com>",
|
||||
"Andre Bogus <bogusandre@gmail.com>",
|
||||
@ -25,7 +25,7 @@ test = false
|
||||
|
||||
[dependencies]
|
||||
# begin automatic update
|
||||
clippy_lints = { version = "0.0.78", path = "clippy_lints" }
|
||||
clippy_lints = { version = "0.0.79", path = "clippy_lints" }
|
||||
# end automatic update
|
||||
|
||||
[dev-dependencies]
|
||||
|
@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "clippy_lints"
|
||||
# begin automatic update
|
||||
version = "0.0.78"
|
||||
version = "0.0.79"
|
||||
# end automatic update
|
||||
authors = [
|
||||
"Manish Goregaokar <manishsmail@gmail.com>",
|
||||
|
@ -253,7 +253,6 @@ fn bindings<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, pat: &Pat) -> HashMap<Interned
|
||||
}
|
||||
}
|
||||
PatKind::Lit(..) |
|
||||
PatKind::QPath(..) |
|
||||
PatKind::Range(..) |
|
||||
PatKind::Wild |
|
||||
PatKind::Path(..) => (),
|
||||
|
@ -202,7 +202,7 @@ fn check_single_match_opt_like(cx: &LateContext, ex: &Expr, arms: &[Arm], expr:
|
||||
path.to_string()
|
||||
}
|
||||
PatKind::Binding(BindByValue(MutImmutable), ident, None) => ident.node.to_string(),
|
||||
PatKind::Path(ref path) => path.to_string(),
|
||||
PatKind::Path(None, ref path) => path.to_string(),
|
||||
_ => return,
|
||||
};
|
||||
|
||||
|
@ -148,11 +148,10 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
|
||||
(&PatKind::Binding(ref lb, ref li, ref lp), &PatKind::Binding(ref rb, ref ri, ref rp)) => {
|
||||
lb == rb && li.node.as_str() == ri.node.as_str() && both(lp, rp, |l, r| self.eq_pat(l, r))
|
||||
}
|
||||
(&PatKind::Path(ref l), &PatKind::Path(ref r)) => self.eq_path(l, r),
|
||||
(&PatKind::Lit(ref l), &PatKind::Lit(ref r)) => self.eq_expr(l, r),
|
||||
(&PatKind::QPath(ref ls, ref lp), &PatKind::QPath(ref rs, ref rp)) => {
|
||||
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)
|
||||
}
|
||||
(&PatKind::Lit(ref l), &PatKind::Lit(ref r)) => self.eq_expr(l, r),
|
||||
(&PatKind::Tuple(ref l, ls), &PatKind::Tuple(ref r, rs)) => {
|
||||
ls == rs && over(l, r, |l, r| self.eq_pat(l, r))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user