From 4024f2ce5b82677c33596fc1e3c1ac756abd4a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Wed, 19 Apr 2017 12:17:12 +0200 Subject: [PATCH 1/2] Fixes compilation error with latest nightly rust (1.18.0-nightly (9f2abadca 2017-04-18)) --- clippy_lints/src/enum_clike.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/enum_clike.rs b/clippy_lints/src/enum_clike.rs index 4032234ac5cb..9ca07e27406b 100644 --- a/clippy_lints/src/enum_clike.rs +++ b/clippy_lints/src/enum_clike.rs @@ -44,7 +44,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnportableVariant { let variant = &var.node; if let Some(body_id) = variant.disr_expr { use rustc_const_eval::*; - let constcx = ConstContext::new(cx.tcx, body_id); + let constcx = ConstContext::with_tables(cx.tcx, cx.tcx.body_tables(body_id)); let bad = match constcx.eval(&cx.tcx.hir.body(body_id).value) { Ok(ConstVal::Integral(Usize(Us64(i)))) => i as u32 as u64 != i, Ok(ConstVal::Integral(Isize(Is64(i)))) => i as i32 as i64 != i, From 54affdf4d1206eb3135b958dbdf4aa144e6b61cd Mon Sep 17 00:00:00 2001 From: mcarton Date: Wed, 19 Apr 2017 19:48:25 +0200 Subject: [PATCH 2/2] Bump the version --- CHANGELOG.md | 3 +++ Cargo.toml | 4 ++-- clippy_lints/Cargo.toml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 383bf56bd0c8..3116c6869625 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Change Log All notable changes to this project will be documented in this file. +## 0.0.125 — 2017-04-19 +* Update to *rustc 1.18.0-nightly (9f2abadca 2017-04-18)* + ## 0.0.124 — 2017-04-16 * Update to *rustc 1.18.0-nightly (d5cf1cb64 2017-04-15)* diff --git a/Cargo.toml b/Cargo.toml index d66ca3a02429..673715179484 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clippy" -version = "0.0.124" +version = "0.0.125" authors = [ "Manish Goregaokar ", "Andre Bogus ", @@ -30,7 +30,7 @@ test = false [dependencies] # begin automatic update -clippy_lints = { version = "0.0.124", path = "clippy_lints" } +clippy_lints = { version = "0.0.125", path = "clippy_lints" } # end automatic update cargo_metadata = "0.1.1" diff --git a/clippy_lints/Cargo.toml b/clippy_lints/Cargo.toml index 0b5c553d4569..19e06dc5236f 100644 --- a/clippy_lints/Cargo.toml +++ b/clippy_lints/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "clippy_lints" # begin automatic update -version = "0.0.124" +version = "0.0.125" # end automatic update authors = [ "Manish Goregaokar ",