Skip to content

Commit d8a50f5

Browse files
authored
Merge pull request #1201 from Manishearth/rustup
Rustup to a23064a 2016-08-27 and bump to 0.0.86
2 parents b2aaa2a + f3062f4 commit d8a50f5

File tree

10 files changed

+14
-14
lines changed

10 files changed

+14
-14
lines changed

CHANGELOG.md

+2-1
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.86 — ?
4+
## 0.0.86 — 2016-08-28
5+
* Rustup to *rustc 1.13.0-nightly (a23064af5 2016-08-27)*
56
* New lints: [`missing_docs_in_private_items`], [`zero_prefixed_literal`]
67

78
## 0.0.85 — 2016-08-19

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clippy"
3-
version = "0.0.85"
3+
version = "0.0.86"
44
authors = [
55
"Manish Goregaokar <[email protected]>",
66
"Andre Bogus <[email protected]>",
@@ -25,7 +25,7 @@ test = false
2525

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

3131
[dev-dependencies]

clippy_lints/Cargo.toml

+1-1
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.85"
4+
version = "0.0.86"
55
# end automatic update
66
authors = [
77
"Manish Goregaokar <[email protected]>",

clippy_lints/src/derive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fn check_hash_peq<'a, 'tcx: 'a>(cx: &LateContext<'a, 'tcx>, span: Span, trait_re
107107

108108
// Only care about `impl PartialEq<Foo> for Foo`
109109
// For `impl PartialEq<B> for A, input_types is [A, B]
110-
if trait_ref.input_types()[1] == ty {
110+
if trait_ref.substs.type_at(1) == ty {
111111
let mess = if peq_is_automatically_derived {
112112
"you are implementing `Hash` explicitly but have derived `PartialEq`"
113113
} else {

clippy_lints/src/escape.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl<'a, 'tcx: 'a+'gcx, 'gcx: 'a> Delegate<'tcx> for EscapeDelegate<'a, 'tcx, 'g
144144
}
145145

146146
}
147-
fn borrow(&mut self, borrow_id: NodeId, _: Span, cmt: cmt<'tcx>, _: ty::Region, _: ty::BorrowKind,
147+
fn borrow(&mut self, borrow_id: NodeId, _: Span, cmt: cmt<'tcx>, _: &ty::Region, _: ty::BorrowKind,
148148
loan_cause: LoanCause) {
149149

150150
if let Categorization::Local(lid) = cmt.cat {

clippy_lints/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#![feature(rustc_private)]
99
#![feature(slice_patterns)]
1010
#![feature(stmt_expr_attributes)]
11-
#![feature(type_macros)]
1211

1312
#![allow(indexing_slicing, shadow_reuse, unknown_lints, missing_docs_in_private_items)]
1413

clippy_lints/src/methods.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1083,12 +1083,12 @@ fn get_error_type<'a>(cx: &LateContext, ty: ty::Ty<'a>) -> Option<ty::Ty<'a>> {
10831083
if !match_type(cx, ty, &paths::RESULT) {
10841084
return None;
10851085
}
1086+
10861087
if let ty::TyEnum(_, substs) = ty.sty {
1087-
if let Some(err_ty) = substs.types.get(1) {
1088-
return Some(err_ty);
1089-
}
1088+
substs.types().nth(1)
1089+
} else {
1090+
None
10901091
}
1091-
None
10921092
}
10931093

10941094
/// This checks whether a given type is known to implement Debug.

clippy_lints/src/mutex_atomic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl LateLintPass for MutexAtomic {
5959
let ty = cx.tcx.expr_ty(expr);
6060
if let ty::TyStruct(_, subst) = ty.sty {
6161
if match_type(cx, ty, &paths::MUTEX) {
62-
let mutex_param = &subst.types[0].sty;
62+
let mutex_param = &subst.type_at(0).sty;
6363
if let Some(atomic_name) = get_atomic_name(mutex_param) {
6464
let msg = format!("Consider using an {} instead of a Mutex here. If you just want the locking \
6565
behaviour and not the internal type, consider using Mutex<()>.",

clippy_lints/src/utils/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ pub fn implements_trait<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, ty: ty::Ty<'tcx>,
279279
trait_id,
280280
0,
281281
ty,
282-
ty_params);
282+
&ty_params);
283283

284284
traits::SelectionContext::new(&infcx).evaluate_obligation_conservatively(&obligation)
285285
})

clippy_lints/src/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ fn check_vec_macro(cx: &LateContext, vec_args: &higher::VecArgs, span: Span) {
8989
/// Return the item type of the vector (ie. the `T` in `Vec<T>`).
9090
fn vec_type(ty: ty::Ty) -> ty::Ty {
9191
if let ty::TyStruct(_, substs) = ty.sty {
92-
substs.types[0]
92+
substs.type_at(0)
9393
} else {
9494
panic!("The type of `vec!` is a not a struct?");
9595
}

0 commit comments

Comments
 (0)