Skip to content

Commit 32e17b5

Browse files
committed
tests: prefer edition: directives to compile-flags:--edition.
1 parent 2c44026 commit 32e17b5

21 files changed

+21
-21
lines changed

src/test/run-pass/macro-at-most-once-rep.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//
1919
// This test focuses on non-error cases and making sure the correct number of repetitions happen.
2020

21-
// compile-flags: --edition=2018
21+
// edition:2018
2222

2323
#![feature(macro_at_most_once_rep)]
2424

src/test/ui-fulldeps/rust-2018/suggestions-not-always-applicable.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:suggestions-not-always-applicable.rs
12-
// compile-flags: --edition 2015
12+
// edition:2015
1313
// run-rustfix
1414
// rustfix-only-machine-applicable
1515
// compile-pass

src/test/ui-fulldeps/rust-2018/suggestions-not-always-applicable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:suggestions-not-always-applicable.rs
12-
// compile-flags: --edition 2015
12+
// edition:2015
1313
// run-rustfix
1414
// rustfix-only-machine-applicable
1515
// compile-pass

src/test/ui-fulldeps/unnecessary-extern-crate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// compile-flags: --edition 2018
11+
// edition:2018
1212

1313
#![deny(unused_extern_crates)]
1414
#![feature(alloc, test, libc)]

src/test/ui/borrowck/borrowck-feature-nll-overrides-migrate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// revisions: zflag edition
2222
// [zflag]compile-flags: -Z borrowck=migrate
23-
// [edition]compile-flags: --edition 2018
23+
// [edition]edition:2018
2424

2525
#![feature(nll)]
2626

src/test/ui/borrowck/borrowck-migrate-to-nll.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
// revisions: zflag edition
2525
//[zflag]compile-flags: -Z borrowck=migrate
26-
//[edition]compile-flags: --edition 2018
26+
//[edition]edition:2018
2727
//[zflag] run-pass
2828
//[edition] run-pass
2929

src/test/ui/borrowck/issue-52967-edition-2018-needs-two-phase-borrows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
// revisions: ast zflags edition
1616
//[zflags]compile-flags: -Z borrowck=migrate -Z two-phase-borrows
17-
//[edition]compile-flags: --edition 2018
17+
//[edition]edition:2018
1818

1919
// run-pass
2020

src/test/ui/editions/edition-extern-crate-allowed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:edition-extern-crate-allowed.rs
12-
// compile-flags: --edition 2015
12+
// edition:2015
1313
// compile-pass
1414

1515
#![warn(rust_2018_idioms)]

src/test/ui/in-band-lifetimes/elided-lifetimes.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// run-rustfix
12-
// compile-flags: --edition 2018
12+
// edition:2018
1313

1414
#![allow(unused)]
1515
#![deny(elided_lifetimes_in_paths)]

src/test/ui/in-band-lifetimes/elided-lifetimes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// run-rustfix
12-
// compile-flags: --edition 2018
12+
// edition:2018
1313

1414
#![allow(unused)]
1515
#![deny(elided_lifetimes_in_paths)]

0 commit comments

Comments
 (0)