Skip to content

Commit 75d33cf

Browse files
committed
add edition compiletest header + fix tests
1 parent 2a1c4ee commit 75d33cf

34 files changed

+48
-37
lines changed

src/test/compile-fail/edition-raw-pointer-method-2015.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
// ignore-tidy-linelength
12-
// compile-flags: --edition=2015 -Zunstable-options
12+
// edition:2015
1313

1414
// tests that editions work with the tyvar warning-turned-error
1515

src/test/compile-fail/edition-raw-pointer-method-2018.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
// ignore-tidy-linelength
12-
// compile-flags: --edition=2018 -Zunstable-options
12+
// edition:2018
1313

1414
// tests that editions work with the tyvar warning-turned-error
1515

src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-1.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 -Zunstable-options
11+
// edition:2018
1212

1313
#![feature(extern_absolute_paths)]
1414

src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-2.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 -Zunstable-options
11+
// edition:2018
1212

1313
#![feature(extern_absolute_paths)]
1414

src/test/compile-fail/rfc-2126-extern-absolute-paths/non-existent-3.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 -Zunstable-options
11+
// edition:2018
1212

1313
#![feature(extern_absolute_paths)]
1414

src/test/compile-fail/rfc-2126-extern-absolute-paths/single-segment.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:xcrate.rs
12-
// compile-flags: --edition=2018 -Zunstable-options
12+
// edition:2018
1313

1414
#![feature(crate_in_paths)]
1515
#![feature(extern_absolute_paths)]

src/test/run-pass/async-await.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
#![feature(arbitrary_self_types, async_await, await_macro, futures_api, pin)]
1414

src/test/run-pass/auxiliary/edition-kw-macro-2015.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=2015
11+
// edition:2015
1212

1313
#![feature(raw_identifiers)]
1414

src/test/run-pass/auxiliary/edition-kw-macro-2018.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
#![feature(raw_identifiers)]
1414

src/test/run-pass/edition-keywords-2015-2015.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=2015
11+
// edition:2015
1212
// aux-build:edition-kw-macro-2015.rs
1313

1414
#![feature(raw_identifiers)]

0 commit comments

Comments
 (0)