about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2019-02-03 21:32:59 +0900
committerHirokazu Hata <h.hata.ai.t@gmail.com>2019-02-03 22:45:52 +0900
commit9f34d4b3572f7db45cbe7108f392280ebc18b301 (patch)
tree7eb2b35be89f92be720f6b658f874c967d67de1c /src/tools
parent2966fbc10d0fd4fe15a25608b9eca3e52ba24995 (diff)
downloadrust-9f34d4b3572f7db45cbe7108f392280ebc18b301.tar.gz
rust-9f34d4b3572f7db45cbe7108f392280ebc18b301.zip
Use 2018 edition for cargotest
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/cargotest/Cargo.toml1
-rw-r--r--src/tools/cargotest/main.rs2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/cargotest/Cargo.toml b/src/tools/cargotest/Cargo.toml
index f4163a6f117..3811fee3936 100644
--- a/src/tools/cargotest/Cargo.toml
+++ b/src/tools/cargotest/Cargo.toml
@@ -2,6 +2,7 @@
 name = "cargotest2"
 version = "0.1.0"
 authors = ["Brian Anderson <banderson@mozilla.com>"]
+edition = "2018"
 
 [[bin]]
 name = "cargotest"
diff --git a/src/tools/cargotest/main.rs b/src/tools/cargotest/main.rs
index 120f238eb45..7f3c159075b 100644
--- a/src/tools/cargotest/main.rs
+++ b/src/tools/cargotest/main.rs
@@ -1,3 +1,5 @@
+#![deny(rust_2018_idioms)]
+
 use std::env;
 use std::process::Command;
 use std::path::{Path, PathBuf};