Skip to content

Commit 9936734

Browse files
authored
Merge pull request #1246 from Manishearth/rustup
Rustup to *rustc 1.14.0-nightly (144af3e 2016-10-02)* and bump to 0.0.93
2 parents a4198c1 + 1c035f7 commit 9936734

File tree

16 files changed

+32
-31
lines changed

16 files changed

+32
-31
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4-
## 0.0.93 — ?
4+
## 0.0.93 — 2016-10-03
5+
* Rustup to *rustc 1.14.0-nightly (144af3e97 2016-10-02)*
56
* [`option_map_unwrap_or`] and [`option_map_unwrap_or_else`] are now
67
allowed by default.
78
* New lint: [`explicit_into_iter_loop`]

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clippy"
3-
version = "0.0.92"
3+
version = "0.0.93"
44
authors = [
55
"Manish Goregaokar <manishsmail@gmail.com>",
66
"Andre Bogus <bogusandre@gmail.com>",
@@ -25,7 +25,7 @@ test = false
2525

2626
[dependencies]
2727
# begin automatic update
28-
clippy_lints = { version = "0.0.92", path = "clippy_lints" }
28+
clippy_lints = { version = "0.0.93", path = "clippy_lints" }
2929
# end automatic update
3030

3131
[dev-dependencies]

clippy_lints/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "clippy_lints"
33
# begin automatic update
4-
version = "0.0.92"
4+
version = "0.0.93"
55
# end automatic update
66
authors = [
77
"Manish Goregaokar <manishsmail@gmail.com>",

clippy_lints/src/array_indexing.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use rustc::lint::*;
22
use rustc::middle::const_val::ConstVal;
3-
use rustc::ty::TyArray;
3+
use rustc::ty;
44
use rustc_const_eval::EvalHint::ExprTypeChecked;
55
use rustc_const_eval::eval_const_expr_partial;
66
use rustc_const_math::ConstInt;
7-
use rustc::hir::*;
7+
use rustc::hir;
88
use syntax::ast::RangeLimits;
99
use utils::{self, higher};
1010

@@ -56,11 +56,11 @@ impl LintPass for ArrayIndexing {
5656
}
5757

5858
impl LateLintPass for ArrayIndexing {
59-
fn check_expr(&mut self, cx: &LateContext, e: &Expr) {
60-
if let ExprIndex(ref array, ref index) = e.node {
59+
fn check_expr(&mut self, cx: &LateContext, e: &hir::Expr) {
60+
if let hir::ExprIndex(ref array, ref index) = e.node {
6161
// Array with known size can be checked statically
6262
let ty = cx.tcx.expr_ty(array);
63-
if let TyArray(_, size) = ty.sty {
63+
if let ty::TyArray(_, size) = ty.sty {
6464
let size = ConstInt::Infer(size as u64);
6565

6666
// Index is a constant uint

clippy_lints/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ impl<'c, 'cc> ConstEvalLateContext<'c, 'cc> {
257257
ExprBlock(ref block) => self.block(block),
258258
ExprIf(ref cond, ref then, ref otherwise) => self.ifthenelse(cond, then, otherwise),
259259
ExprLit(ref lit) => Some(lit_to_constant(&lit.node)),
260-
ExprVec(ref vec) => self.multi(vec).map(Constant::Vec),
260+
ExprArray(ref vec) => self.multi(vec).map(Constant::Vec),
261261
ExprTup(ref tup) => self.multi(tup).map(Constant::Tuple),
262262
ExprRepeat(ref value, ref number) => {
263263
self.binop_apply(value, number, |v, n| Some(Constant::Repeat(Box::new(v), n.as_u64() as usize)))

clippy_lints/src/copies.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ fn bindings<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, pat: &Pat) -> HashMap<Interned
265265
bindings_impl(cx, pat, map);
266266
}
267267
}
268-
PatKind::Vec(ref lhs, ref mid, ref rhs) => {
268+
PatKind::Slice(ref lhs, ref mid, ref rhs) => {
269269
for pat in lhs {
270270
bindings_impl(cx, pat, map);
271271
}

clippy_lints/src/eval_order_dependence.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ fn check_expr<'v, 't>(vis: & mut ReadVisitor<'v, 't>, expr: &'v Expr) -> StopEar
213213
}
214214

215215
match expr.node {
216-
ExprVec(_) |
216+
ExprArray(_) |
217217
ExprTup(_) |
218218
ExprMethodCall(_, _, _) |
219219
ExprCall(_, _) |

clippy_lints/src/format.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub fn get_argument_fmtstr_parts<'a, 'b>(cx: &LateContext<'a, 'b>, expr: &'a Exp
8282
decl.name.as_str() == "__STATIC_FMTSTR",
8383
let ItemStatic(_, _, ref expr) = decl.node,
8484
let ExprAddrOf(_, ref expr) = expr.node, // &["…", "…", …]
85-
let ExprVec(ref exprs) = expr.node,
85+
let ExprArray(ref exprs) = expr.node,
8686
], {
8787
let mut result = Vec::new();
8888
for expr in exprs {
@@ -123,7 +123,7 @@ fn check_arg_is_display(cx: &LateContext, expr: &Expr) -> bool {
123123
arms[0].pats.len() == 1,
124124
let PatKind::Tuple(ref pat, None) = arms[0].pats[0].node,
125125
pat.len() == 1,
126-
let ExprVec(ref exprs) = arms[0].body.node,
126+
let ExprArray(ref exprs) = arms[0].body.node,
127127
exprs.len() == 1,
128128
let ExprCall(_, ref args) = exprs[0].node,
129129
args.len() == 2,

clippy_lints/src/no_effect.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn has_no_effect(cx: &LateContext, expr: &Expr) -> bool {
5050
Expr_::ExprPath(..) => true,
5151
Expr_::ExprIndex(ref a, ref b) |
5252
Expr_::ExprBinary(_, ref a, ref b) => has_no_effect(cx, a) && has_no_effect(cx, b),
53-
Expr_::ExprVec(ref v) |
53+
Expr_::ExprArray(ref v) |
5454
Expr_::ExprTup(ref v) => v.iter().all(|val| has_no_effect(cx, val)),
5555
Expr_::ExprRepeat(ref inner, _) |
5656
Expr_::ExprCast(ref inner, _) |
@@ -130,7 +130,7 @@ fn reduce_expression<'a>(cx: &LateContext, expr: &'a Expr) -> Option<Vec<&'a Exp
130130
match expr.node {
131131
Expr_::ExprIndex(ref a, ref b) |
132132
Expr_::ExprBinary(_, ref a, ref b) => Some(vec![&**a, &**b]),
133-
Expr_::ExprVec(ref v) |
133+
Expr_::ExprArray(ref v) |
134134
Expr_::ExprTup(ref v) => Some(v.iter().map(Deref::deref).collect()),
135135
Expr_::ExprRepeat(ref inner, _) |
136136
Expr_::ExprCast(ref inner, _) |

clippy_lints/src/regex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ fn is_trivial_regex(s: &regex_syntax::Expr) -> Option<&'static str> {
190190
fn check_set(cx: &LateContext, expr: &Expr, utf8: bool) {
191191
if_let_chain! {[
192192
let ExprAddrOf(_, ref expr) = expr.node,
193-
let ExprVec(ref exprs) = expr.node,
193+
let ExprArray(ref exprs) = expr.node,
194194
], {
195195
for expr in exprs {
196196
check_regex(cx, expr, utf8);

0 commit comments

Comments
 (0)