about summary refs log tree commit diff
path: root/src/test/compile-fail
diff options
context:
space:
mode:
authormark <markm@cs.wisc.edu>2018-06-25 22:04:08 -0500
committermark <markm@cs.wisc.edu>2018-06-26 19:32:00 -0500
commit75d33cfa649610d4d8908bac2491a2ccced525f5 (patch)
treef8789ce5b317cadb63329ecf6436268c3f43d833 /src/test/compile-fail
parent2a1c4eec40527de45b9d9b81672c8b9220d554fc (diff)
downloadrust-75d33cfa649610d4d8908bac2491a2ccced525f5.tar.gz
rust-75d33cfa649610d4d8908bac2491a2ccced525f5.zip
add edition compiletest header + fix tests
Diffstat (limited to 'src/test/compile-fail')
-rw-r--r--src/test/compile-fail/edition-raw-pointer-method-2015.rs2
-rw-r--r--src/test/compile-fail/edition-raw-pointer-method-2018.rs2
-rw-r--r--src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-1.rs2
-rw-r--r--src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-2.rs2
-rw-r--r--src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-3.rs2
-rw-r--r--src/test/compile-fail/rfc-2126-extern-absolute-paths/single-segment.rs2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/test/compile-fail/edition-raw-pointer-method-2015.rs b/src/test/compile-fail/edition-raw-pointer-method-2015.rs
index b304443f631..4ba44fa54d8 100644
--- a/src/test/compile-fail/edition-raw-pointer-method-2015.rs
+++ b/src/test/compile-fail/edition-raw-pointer-method-2015.rs
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // ignore-tidy-linelength
-// compile-flags: --edition=2015 -Zunstable-options
+// edition:2015
 
 // tests that editions work with the tyvar warning-turned-error
 
diff --git a/src/test/compile-fail/edition-raw-pointer-method-2018.rs b/src/test/compile-fail/edition-raw-pointer-method-2018.rs
index d0cf81d59cf..c8548ed35b9 100644
--- a/src/test/compile-fail/edition-raw-pointer-method-2018.rs
+++ b/src/test/compile-fail/edition-raw-pointer-method-2018.rs
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // ignore-tidy-linelength
-// compile-flags: --edition=2018 -Zunstable-options
+// edition:2018
 
 // tests that editions work with the tyvar warning-turned-error
 
diff --git a/src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-1.rs b/src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-1.rs
index fcf4714ba96..e04bb27f435 100644
--- a/src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-1.rs
+++ b/src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-1.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// compile-flags: --edition=2018 -Zunstable-options
+// edition:2018
 
 #![feature(extern_absolute_paths)]
 
diff --git a/src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-2.rs b/src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-2.rs
index c256c5592c2..bebf0236bb4 100644
--- a/src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-2.rs
+++ b/src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-2.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// compile-flags: --edition=2018 -Zunstable-options
+// edition:2018
 
 #![feature(extern_absolute_paths)]
 
diff --git a/src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-3.rs b/src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-3.rs
index 837dc617b3a..5906a0719c8 100644
--- a/src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-3.rs
+++ b/src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-3.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// compile-flags: --edition=2018 -Zunstable-options
+// edition:2018
 
 #![feature(extern_absolute_paths)]
 
diff --git a/src/test/compile-fail/rfc-2126-extern-absolute-paths/single-segment.rs b/src/test/compile-fail/rfc-2126-extern-absolute-paths/single-segment.rs
index 9b7baa00163..7111176dbd9 100644
--- a/src/test/compile-fail/rfc-2126-extern-absolute-paths/single-segment.rs
+++ b/src/test/compile-fail/rfc-2126-extern-absolute-paths/single-segment.rs
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // aux-build:xcrate.rs
-// compile-flags: --edition=2018 -Zunstable-options
+// edition:2018
 
 #![feature(crate_in_paths)]
 #![feature(extern_absolute_paths)]