]> git.lizzy.rs Git - rust.git/commitdiff
tests: prefer edition: directives to compile-flags:--edition.
authorEduard-Mihai Burtescu <edy.burt@gmail.com>
Thu, 16 Aug 2018 07:36:11 +0000 (10:36 +0300)
committerEduard-Mihai Burtescu <edy.burt@gmail.com>
Thu, 16 Aug 2018 07:36:11 +0000 (10:36 +0300)
21 files changed:
src/test/run-pass/macro-at-most-once-rep.rs
src/test/ui-fulldeps/rust-2018/suggestions-not-always-applicable.fixed
src/test/ui-fulldeps/rust-2018/suggestions-not-always-applicable.rs
src/test/ui-fulldeps/unnecessary-extern-crate.rs
src/test/ui/borrowck/borrowck-feature-nll-overrides-migrate.rs
src/test/ui/borrowck/borrowck-migrate-to-nll.rs
src/test/ui/borrowck/issue-52967-edition-2018-needs-two-phase-borrows.rs
src/test/ui/editions/edition-extern-crate-allowed.rs
src/test/ui/in-band-lifetimes/elided-lifetimes.fixed
src/test/ui/in-band-lifetimes/elided-lifetimes.rs
src/test/ui/macros/macro-at-most-once-rep-2015-ques-rep-feature-flag.rs
src/test/ui/macros/macro-at-most-once-rep-2015-ques-rep.rs
src/test/ui/macros/macro-at-most-once-rep-2015-ques-sep.rs
src/test/ui/macros/macro-at-most-once-rep-2018-feature-gate.rs
src/test/ui/macros/macro-at-most-once-rep-2018.rs
src/test/ui/removing-extern-crate.fixed
src/test/ui/removing-extern-crate.rs
src/test/ui/rust-2018/async-ident-allowed.rs
src/test/ui/rust-2018/extern-crate-idiomatic-in-2018.fixed
src/test/ui/rust-2018/extern-crate-idiomatic-in-2018.rs
src/test/ui/rust-2018/issue-52202-use-suggestions.rs

index dcf2222ba6dea18a012768b49d4f0db05957bc97..61c3e781c08676fe99413024987c9f8f37d18196 100644 (file)
@@ -18,7 +18,7 @@
 //
 // This test focuses on non-error cases and making sure the correct number of repetitions happen.
 
-// compile-flags: --edition=2018
+// edition:2018
 
 #![feature(macro_at_most_once_rep)]
 
index e5b47c70863e5371b0d0d640cf5ba182b3bb7fbc..b64ebed030588fae9cccd48b4f963f1d580c0aa5 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // aux-build:suggestions-not-always-applicable.rs
-// compile-flags: --edition 2015
+// edition:2015
 // run-rustfix
 // rustfix-only-machine-applicable
 // compile-pass
index e5b47c70863e5371b0d0d640cf5ba182b3bb7fbc..b64ebed030588fae9cccd48b4f963f1d580c0aa5 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // aux-build:suggestions-not-always-applicable.rs
-// compile-flags: --edition 2015
+// edition:2015
 // run-rustfix
 // rustfix-only-machine-applicable
 // compile-pass
index 0811c79b0a4b9d5d50a4abd343c8756934c855d5..ea3e0587958b10a8c86c0713333508606628e145 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// compile-flags: --edition 2018
+// edition:2018
 
 #![deny(unused_extern_crates)]
 #![feature(alloc, test, libc)]
index 72043938f53511f0e441e6c2b8bd6e1045d376a3..104c0886311d0bda3cea464539a338336fdb6288 100644 (file)
@@ -20,7 +20,7 @@
 
 // revisions: zflag edition
 // [zflag]compile-flags: -Z borrowck=migrate
-// [edition]compile-flags: --edition 2018
+// [edition]edition:2018
 
 #![feature(nll)]
 
index e7f2bfbfedba79bd74840fe89c9c01ea140e4a09..bb6b29072e257fc6fe317d8f726912d0acdca55b 100644 (file)
@@ -23,7 +23,7 @@
 
 // revisions: zflag edition
 //[zflag]compile-flags: -Z borrowck=migrate
-//[edition]compile-flags: --edition 2018
+//[edition]edition:2018
 //[zflag] run-pass
 //[edition] run-pass
 
index c39fff2644dfd3325127c39b059fcda63da60c26..3b53fb9fc42831f7bf77da554c3a76bf1df29799 100644 (file)
@@ -14,7 +14,7 @@
 
 // revisions: ast zflags edition
 //[zflags]compile-flags: -Z borrowck=migrate -Z two-phase-borrows
-//[edition]compile-flags: --edition 2018
+//[edition]edition:2018
 
 // run-pass
 
index 7368564e250d1b7a7e9a8c487f417e6ca125196f..75761a0b5b9716849883878868ca2cbfddad7fbe 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // aux-build:edition-extern-crate-allowed.rs
-// compile-flags: --edition 2015
+// edition:2015
 // compile-pass
 
 #![warn(rust_2018_idioms)]
index c9381e6350f2bc64926c69a4df33f4676eacc4be..153e5003746887eff17f558297ac82f585d9e2a0 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // run-rustfix
-// compile-flags: --edition 2018
+// edition:2018
 
 #![allow(unused)]
 #![deny(elided_lifetimes_in_paths)]
index 8151dd01a98d8d8108d81ab6f0e0a4eb77764882..41aa7e1a7b7b9b4524b9c311559c88f3bef64801 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // run-rustfix
-// compile-flags: --edition 2018
+// edition:2018
 
 #![allow(unused)]
 #![deny(elided_lifetimes_in_paths)]
index fd7925ea3eeeb07bf1821fa8d6ae55396f80892b..63a4ef16a2581cef6a2a03fdc27dff2ad29402b4 100644 (file)
@@ -12,7 +12,7 @@
 // with the feature flag.
 
 // gate-test-macro_at_most_once_rep
-// compile-flags: --edition=2015
+// edition:2015
 
 #![feature(macro_at_most_once_rep)]
 
index 90bc19739b8724b279891854f02352afa8a24fe9..64848d050cb1e90bbe242628a1ceddb7266017c8 100644 (file)
@@ -10,7 +10,7 @@
 
 // Test behavior of `?` macro _kleene op_ under the 2015 edition. Namely, it doesn't exist.
 
-// compile-flags: --edition=2015
+// edition:2015
 
 macro_rules! bar {
     ($(a)?) => {} //~ERROR expected `*` or `+`
index 2e06b4bd5c2405819a29fe8efbe2822d5c48257b..a7857991079feefec88b41726b3e71cc68fe90e5 100644 (file)
@@ -11,7 +11,7 @@
 // Test behavior of `?` macro _separator_ under the 2015 edition. Namely, `?` can be used as a
 // separator, but you get a migration warning for the edition.
 
-// compile-flags: --edition=2015
+// edition:2015
 // compile-pass
 
 #![warn(rust_2018_compatibility)]
index f3107d4f1e4f6382942cfef5bea134988755bea8..ffabf9bcdf68557dad795f6135ed646380c87d74 100644 (file)
@@ -11,7 +11,7 @@
 // Feature gate test for macro_at_most_once_rep under 2018 edition.
 
 // gate-test-macro_at_most_once_rep
-// compile-flags: --edition=2018
+// edition:2018
 
 macro_rules! foo {
     ($(a)?) => {}
index 958a7e0cdf444beed41e76010c0f8ebe5580420c..5dabe8d95280100932a910c7b92344c23dbb1fde 100644 (file)
@@ -10,7 +10,7 @@
 
 // Tests that `?` is a Kleene op and not a macro separator in the 2018 edition.
 
-// compile-flags: --edition=2018
+// edition:2018
 
 #![feature(macro_at_most_once_rep)]
 
index 83b35cec80956847ff2141afc27d63697b8b209f..90427b061b652f16a6ab7575314416f286689ec3 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// compile-flags: --edition 2018
+// edition:2018
 // aux-build:removing-extern-crate.rs
 // run-rustfix
 // compile-pass
index 29479086460e6cca9095f4ec5ebc646b7dd091c9..3905d285becb55a5cf42ac18915b8bf469a09079 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// compile-flags: --edition 2018
+// edition:2018
 // aux-build:removing-extern-crate.rs
 // run-rustfix
 // compile-pass
index fd4eae1f9b54c33d7ea0d4273e2d9069184e0c26..3bc468483bda2a1487ceeff1cd3119864fb4f761 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// compile-flags: --edition 2015
+// edition:2015
 
 #![deny(rust_2018_compatibility)]
 
index c7c73e90988e3f0be3428f35aad406b4f5a9750e..fc81ab08f624d480ee5491354e3cfb911653f98a 100644 (file)
@@ -10,7 +10,7 @@
 
 // aux-build:edition-lint-paths.rs
 // run-rustfix
-// compile-flags:--edition 2018
+// edition:2018
 
 // The "normal case". Ideally we would remove the `extern crate` here,
 // but we don't.
index ee37a3d766af445a0db42c7b68464994e0cbae5d..72751f2080cc9b2d28f31ab179189438679dc9a1 100644 (file)
@@ -10,7 +10,7 @@
 
 // aux-build:edition-lint-paths.rs
 // run-rustfix
-// compile-flags:--edition 2018
+// edition:2018
 
 // The "normal case". Ideally we would remove the `extern crate` here,
 // but we don't.
index 5acd19c2471e68169c0c92d3a2fcab8286d41112..deb80411bbf6405ed809afe2c6c113fbb737ca9c 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// compile-flags: --edition 2018
+// edition:2018
 
 // The local `use` suggestion should start with `crate::` (but the
 // standard-library suggestions should not, obviously).