about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hansch <dev@phansch.net>2019-02-03 14:47:03 +0100
committerPhilipp Hansch <dev@phansch.net>2019-02-03 14:47:03 +0100
commit64ff65990fe6584d6a9e273c7487e538c9d5e245 (patch)
tree86d06b9122b69d5a37fca3e58c9351a626f12e26
parent273b7f7f46e38d254e7163c974dde2008ba00440 (diff)
downloadrust-64ff65990fe6584d6a9e273c7487e538c9d5e245.tar.gz
rust-64ff65990fe6584d6a9e273c7487e538c9d5e245.zip
Transition leftover test libs to Rust 2018
-rw-r--r--clippy_workspace_tests/Cargo.toml1
-rw-r--r--clippy_workspace_tests/src/main.rs2
-rw-r--r--mini-macro/Cargo.toml1
-rw-r--r--mini-macro/src/lib.rs1
4 files changed, 5 insertions, 0 deletions
diff --git a/clippy_workspace_tests/Cargo.toml b/clippy_workspace_tests/Cargo.toml
index a282378c951..7a235b215d3 100644
--- a/clippy_workspace_tests/Cargo.toml
+++ b/clippy_workspace_tests/Cargo.toml
@@ -1,6 +1,7 @@
 [package]
 name = "clippy_workspace_tests"
 version = "0.1.0"
+edition = "2018"
 
 [workspace]
 members = ["subcrate"]
diff --git a/clippy_workspace_tests/src/main.rs b/clippy_workspace_tests/src/main.rs
index f79c691f085..0dcdf6383fd 100644
--- a/clippy_workspace_tests/src/main.rs
+++ b/clippy_workspace_tests/src/main.rs
@@ -1,2 +1,4 @@
+#![deny(rust_2018_idioms)]
+
 fn main() {
 }
diff --git a/mini-macro/Cargo.toml b/mini-macro/Cargo.toml
index 2cdba4c3236..a21e7fec6d4 100644
--- a/mini-macro/Cargo.toml
+++ b/mini-macro/Cargo.toml
@@ -11,6 +11,7 @@ authors = [
 license = "MPL-2.0"
 description = "A macro to test clippy's procedural macro checks"
 repository = "https://github.com/rust-lang/rust-clippy"
+edition = "2018"
 
 [lib]
 name = "clippy_mini_macro_test"
diff --git a/mini-macro/src/lib.rs b/mini-macro/src/lib.rs
index 0a96be71b35..ec489344a6f 100644
--- a/mini-macro/src/lib.rs
+++ b/mini-macro/src/lib.rs
@@ -1,4 +1,5 @@
 #![feature(proc_macro_quote, proc_macro_hygiene)]
+#![deny(rust_2018_idioms)]
 extern crate proc_macro;
 
 use proc_macro::{TokenStream, quote};