Skip to content

Commit c3df3bc

Browse files
authored
Merge pull request #2069 from rust-lang-nursery/rustup
Rust upgrade to rustc 1.22.0-nightly (0701b37 2017-09-18)
2 parents 0b64222 + 31489d7 commit c3df3bc

File tree

7 files changed

+15
-8
lines changed

7 files changed

+15
-8
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## 0.0.162
5+
* Update to *rustc 1.22.0-nightly (0701b37d9 2017-09-18)*
6+
* New lint: [`chars_last_cmp`]
7+
* Improved suggestions for [`needless_borrow`], [`ptr_arg`],
8+
49
## 0.0.161
510
* Update to *rustc 1.22.0-nightly (539f2083d 2017-09-13)*
611

@@ -457,6 +462,7 @@ All notable changes to this project will be documented in this file.
457462
[`cast_precision_loss`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#cast_precision_loss
458463
[`cast_sign_loss`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#cast_sign_loss
459464
[`char_lit_as_u8`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#char_lit_as_u8
465+
[`chars_last_cmp`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#chars_last_cmp
460466
[`chars_next_cmp`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#chars_next_cmp
461467
[`clone_double_ref`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#clone_double_ref
462468
[`clone_on_copy`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#clone_on_copy

Cargo.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.161"
3+
version = "0.0.162"
44
authors = [
55
"Manish Goregaokar <[email protected]>",
66
"Andre Bogus <[email protected]>",
@@ -31,7 +31,7 @@ path = "src/main.rs"
3131

3232
[dependencies]
3333
# begin automatic update
34-
clippy_lints = { version = "0.0.161", path = "clippy_lints" }
34+
clippy_lints = { version = "0.0.162", path = "clippy_lints" }
3535
# end automatic update
3636
cargo_metadata = "0.2"
3737

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

clippy_lints/src/bit_mask.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ fn fetch_int_literal(cx: &LateContext, lit: &Expr) -> Option<u128> {
307307
cx.tcx.mir_const_qualif(def_id);
308308
cx.tcx.hir.body(cx.tcx.hir.body_owned_by(id))
309309
} else {
310-
cx.tcx.extern_const_body(def_id)
310+
cx.tcx.extern_const_body(def_id).body
311311
};
312312
fetch_int_literal(cx, &body.value)
313313
})

clippy_lints/src/consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ impl<'c, 'cc> ConstEvalLateContext<'c, 'cc> {
298298
self.tcx.mir_const_qualif(def_id);
299299
self.tcx.hir.body(self.tcx.hir.body_owned_by(id))
300300
} else {
301-
self.tcx.extern_const_body(def_id)
301+
self.tcx.extern_const_body(def_id).body
302302
};
303303
let ret = cx.expr(&body.value);
304304
if ret.is_some() {

clippy_lints/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
458458
matches::MATCH_REF_PATS,
459459
matches::MATCH_WILD_ERR_ARM,
460460
matches::SINGLE_MATCH,
461+
methods::CHARS_LAST_CMP,
461462
methods::CHARS_NEXT_CMP,
462463
methods::CLONE_DOUBLE_REF,
463464
methods::CLONE_ON_COPY,

0 commit comments

Comments
 (0)