about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTaiki Endo <te316e89@gmail.com>2019-02-06 23:12:47 +0900
committerTaiki Endo <te316e89@gmail.com>2019-02-06 23:12:47 +0900
commitea46f5b2d06bd4f106d67245cf2260ca33526f2b (patch)
tree88441a40955d48ac93cbd526d361962c23e6248c
parentb139669f374eb5024a50eb13f116ff763b1c5935 (diff)
downloadrust-ea46f5b2d06bd4f106d67245cf2260ca33526f2b.tar.gz
rust-ea46f5b2d06bd4f106d67245cf2260ca33526f2b.zip
librustc_lsan => 2018
-rw-r--r--src/librustc_lsan/Cargo.toml1
-rw-r--r--src/librustc_lsan/build.rs3
-rw-r--r--src/librustc_lsan/lib.rs3
3 files changed, 3 insertions, 4 deletions
diff --git a/src/librustc_lsan/Cargo.toml b/src/librustc_lsan/Cargo.toml
index a8e11df7670..9ad53ee6d09 100644
--- a/src/librustc_lsan/Cargo.toml
+++ b/src/librustc_lsan/Cargo.toml
@@ -3,6 +3,7 @@ authors = ["The Rust Project Developers"]
 build = "build.rs"
 name = "rustc_lsan"
 version = "0.0.0"
+edition = "2018"
 
 [lib]
 name = "rustc_lsan"
diff --git a/src/librustc_lsan/build.rs b/src/librustc_lsan/build.rs
index ad528bb0390..b8c7b7c2d55 100644
--- a/src/librustc_lsan/build.rs
+++ b/src/librustc_lsan/build.rs
@@ -1,6 +1,3 @@
-extern crate build_helper;
-extern crate cmake;
-
 use std::env;
 use build_helper::sanitizer_lib_boilerplate;
 
diff --git a/src/librustc_lsan/lib.rs b/src/librustc_lsan/lib.rs
index d6c8e54c18d..568bb540c47 100644
--- a/src/librustc_lsan/lib.rs
+++ b/src/librustc_lsan/lib.rs
@@ -1,8 +1,9 @@
 #![sanitizer_runtime]
-#![feature(nll)]
 #![feature(sanitizer_runtime)]
 #![feature(staged_api)]
 #![no_std]
 #![unstable(feature = "sanitizer_runtime_lib",
             reason = "internal implementation detail of sanitizers",
             issue = "0")]
+
+#![deny(rust_2018_idioms)]