]> git.lizzy.rs Git - rust.git/commitdiff
Rustup
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Wed, 15 Nov 2017 07:38:43 +0000 (08:38 +0100)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Wed, 15 Nov 2017 07:38:43 +0000 (08:38 +0100)
CHANGELOG.md
Cargo.toml
clippy_lints/Cargo.toml
clippy_lints/src/utils/mod.rs

index 4603c27e2669716e3238a67567c5b68cb990e08e..60a42ac1f9a4028d547b719b7dca70f78538addc 100644 (file)
@@ -1,6 +1,9 @@
 # Change Log
 All notable changes to this project will be documented in this file.
 
+## 0.0.171
+* Rustup to *rustc 1.23.0-nightly (ff0f5de3b 2017-11-14)*
+
 ## 0.0.170
 * Rustup to *rustc 1.23.0-nightly (d6b06c63a 2017-11-09)*
 
index 38fcae193545cde9fa4f38f038521e269c0ba519..a022264985db61e125da34177d0439539d708c99 100644 (file)
@@ -1,6 +1,6 @@
 [package]
 name = "clippy"
-version = "0.0.170"
+version = "0.0.171"
 authors = [
        "Manish Goregaokar <manishsmail@gmail.com>",
        "Andre Bogus <bogusandre@gmail.com>",
@@ -37,7 +37,7 @@ path = "src/driver.rs"
 
 [dependencies]
 # begin automatic update
-clippy_lints = { version = "0.0.170", path = "clippy_lints" }
+clippy_lints = { version = "0.0.171", path = "clippy_lints" }
 # end automatic update
 cargo_metadata = "0.2"
 regex = "0.2"
index e2b8d65468225afab8c94107f1cd81f2b917786a..94f4621987f0ef99089969e2ab242724899a4f04 100644 (file)
@@ -1,7 +1,7 @@
 [package]
 name = "clippy_lints"
 # begin automatic update
-version = "0.0.170"
+version = "0.0.171"
 # end automatic update
 authors = [
        "Manish Goregaokar <manishsmail@gmail.com>",
index a0323df1f624e24ec763e81c0770b4e94056d73e..8571e5bb5631b1dae219ae6965e3aa7ca40482df 100644 (file)
@@ -9,7 +9,6 @@
 use rustc::session::Session;
 use rustc::traits;
 use rustc::ty::{self, Ty, TyCtxt};
-use rustc::mir::transform::MirSource;
 use rustc_errors;
 use std::borrow::Cow;
 use std::env;
@@ -48,9 +47,9 @@ pub fn differing_macro_contexts(lhs: Span, rhs: Span) -> bool {
 
 pub fn in_constant(cx: &LateContext, id: NodeId) -> bool {
     let parent_id = cx.tcx.hir.get_parent(id);
-    match MirSource::from_node(cx.tcx, parent_id) {
-        MirSource::GeneratorDrop(_) | MirSource::Fn(_) => false,
-        MirSource::Const(_) | MirSource::Static(..) | MirSource::Promoted(..) => true,
+    match cx.tcx.hir.body_owner_kind(parent_id) {
+        hir::BodyOwnerKind::Fn => false,
+        hir::BodyOwnerKind::Const | hir::BodyOwnerKind::Static(..) => true,
     }
 }