add edition compiletest header + fix tests

This commit is contained in:
mark 2018-06-25 22:04:08 -05:00
parent 2a1c4eec40
commit 75d33cfa64
34 changed files with 48 additions and 37 deletions

View file

@ -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

View file

@ -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

View file

@ -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)]

View file

@ -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)]

View file

@ -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)]

View file

@ -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)]

View 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
#![feature(arbitrary_self_types, async_await, await_macro, futures_api, pin)]

View 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
#![feature(raw_identifiers)]

View 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
#![feature(raw_identifiers)]

View 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
// aux-build:edition-kw-macro-2015.rs
#![feature(raw_identifiers)]

View 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
// aux-build:edition-kw-macro-2018.rs
#![feature(raw_identifiers)]

View 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:edition-kw-macro-2015.rs
#![feature(raw_identifiers)]

View 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:edition-kw-macro-2018.rs
#![feature(raw_identifiers)]

View file

@ -9,7 +9,7 @@
// except according to those terms.
// aux-build:xcrate.rs
// compile-flags: --edition=2018 -Zunstable-options
// edition:2018
#![feature(extern_absolute_paths)]

View file

@ -12,7 +12,8 @@
//
// Regression test for #47075.
// compile-flags: --test --edition=2018 -Zunstable-options
// edition:2018
// compile-flags: --test
#![feature(extern_absolute_paths)]

View 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
#![feature(arbitrary_self_types, async_await, await_macro, futures_api, pin)]

View 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
#![feature(raw_identifiers)]

View 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
#![feature(raw_identifiers)]

View 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
// aux-build:edition-kw-macro-2015.rs
// compile-pass

View 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
// aux-build:edition-kw-macro-2015.rs
#![feature(raw_identifiers)]

View 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
// aux-build:edition-kw-macro-2018.rs
#![feature(raw_identifiers)]

View 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
// aux-build:edition-kw-macro-2018.rs
#![feature(raw_identifiers)]

View 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:edition-kw-macro-2015.rs
// compile-pass

View 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:edition-kw-macro-2015.rs
#![feature(raw_identifiers)]

View 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:edition-kw-macro-2018.rs
#![feature(raw_identifiers)]

View 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:edition-kw-macro-2018.rs
#![feature(raw_identifiers)]

View 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
#![feature(futures_api)]

View file

@ -8,7 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags: --edition=2018
// edition:2018
#![feature(futures_api)]
async fn foo() {} //~ ERROR async fn is unstable

View file

@ -1,5 +1,5 @@
error[E0658]: async fn is unstable (see issue #50547)
--> $DIR/feature-gate-async-await.rs:14:1
--> $DIR/feature-gate-async-await.rs:15:1
|
LL | async fn foo() {} //~ ERROR async fn is unstable
| ^^^^^^^^^^^^^^^^^
@ -7,7 +7,7 @@ LL | async fn foo() {} //~ ERROR async fn is unstable
= help: add #![feature(async_await)] to the crate attributes to enable
error[E0658]: async blocks are unstable (see issue #50547)
--> $DIR/feature-gate-async-await.rs:17:13
--> $DIR/feature-gate-async-await.rs:18:13
|
LL | let _ = async {}; //~ ERROR async blocks are unstable
| ^^^^^^^^
@ -15,7 +15,7 @@ LL | let _ = async {}; //~ ERROR async blocks are unstable
= help: add #![feature(async_await)] to the crate attributes to enable
error[E0658]: async closures are unstable (see issue #50547)
--> $DIR/feature-gate-async-await.rs:18:13
--> $DIR/feature-gate-async-await.rs:19:13
|
LL | let _ = async || {}; //~ ERROR async closures are unstable
| ^^^^^^^^^^^

View file

@ -11,7 +11,7 @@
// tests that the anonymous_parameters lint is warn-by-default on the 2018 edition
// compile-pass
// compile-flags: --edition=2018
// edition:2018
// run-rustfix
trait Foo {

View file

@ -11,7 +11,7 @@
// tests that the anonymous_parameters lint is warn-by-default on the 2018 edition
// compile-pass
// compile-flags: --edition=2018
// edition:2018
// run-rustfix
trait Foo {

View 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
#![feature(arbitrary_self_types, async_await, await_macro, futures_api, pin)]