//
// 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)]
// 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
// 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
// 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)]
// revisions: zflag edition
// [zflag]compile-flags: -Z borrowck=migrate
-// [edition]compile-flags: --edition 2018
+// [edition]edition:2018
#![feature(nll)]
// revisions: zflag edition
//[zflag]compile-flags: -Z borrowck=migrate
-//[edition]compile-flags: --edition 2018
+//[edition]edition:2018
//[zflag] run-pass
//[edition] run-pass
// revisions: ast zflags edition
//[zflags]compile-flags: -Z borrowck=migrate -Z two-phase-borrows
-//[edition]compile-flags: --edition 2018
+//[edition]edition:2018
// run-pass
// except according to those terms.
// aux-build:edition-extern-crate-allowed.rs
-// compile-flags: --edition 2015
+// edition:2015
// compile-pass
#![warn(rust_2018_idioms)]
// except according to those terms.
// run-rustfix
-// compile-flags: --edition 2018
+// edition:2018
#![allow(unused)]
#![deny(elided_lifetimes_in_paths)]
// except according to those terms.
// run-rustfix
-// compile-flags: --edition 2018
+// edition:2018
#![allow(unused)]
#![deny(elided_lifetimes_in_paths)]
// with the feature flag.
// gate-test-macro_at_most_once_rep
-// compile-flags: --edition=2015
+// edition:2015
#![feature(macro_at_most_once_rep)]
// 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 `+`
// 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)]
// 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)?) => {}
// 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)]
// 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
// 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
// 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)]
// 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.
// 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.
// 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).