compiletest: Trim the value of dont-require-annotations
This commit is contained in:
parent
ad72ba2e2c
commit
06dd9e2d20
10 changed files with 10 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
//@ edition:2018
|
||||
//@ dont-require-annotations:SUGGESTION
|
||||
//@ dont-require-annotations: SUGGESTION
|
||||
|
||||
fn take_u32(_x: u32) {}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//@ dont-require-annotations:SUGGESTION
|
||||
//@ dont-require-annotations: SUGGESTION
|
||||
|
||||
fn main() {
|
||||
let u = 5 as bool; //~ ERROR cannot cast `i32` as `bool`
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Error, the linked empty library is `no_std` and doesn't provide a panic handler.
|
||||
|
||||
//@ dont-require-annotations:ERROR
|
||||
//@ dont-require-annotations: ERROR
|
||||
//@ dont-check-compiler-stderr
|
||||
//@ aux-build: cfg_false_lib_no_std_before.rs
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// ignore-tidy-linelength
|
||||
//@ build-fail
|
||||
//@ dont-require-annotations:ERROR
|
||||
//@ dont-require-annotations: ERROR
|
||||
//@ dont-check-compiler-stderr
|
||||
//@ aux-build:panic-runtime-unwind.rs
|
||||
//@ aux-build:panic-runtime-unwind2.rs
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// ignore-tidy-linelength
|
||||
//@ build-fail
|
||||
//@ dont-require-annotations:ERROR
|
||||
//@ dont-require-annotations: ERROR
|
||||
//@ dont-check-compiler-stderr
|
||||
//@ aux-build:panic-runtime-unwind.rs
|
||||
//@ compile-flags:-C panic=abort
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// ignore-tidy-linelength
|
||||
//@ build-fail
|
||||
//@ dont-require-annotations:ERROR
|
||||
//@ dont-require-annotations: ERROR
|
||||
//@ dont-check-compiler-stderr
|
||||
//@ aux-build:panic-runtime-unwind.rs
|
||||
//@ aux-build:wants-panic-runtime-unwind.rs
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//@ dont-require-annotations:SUGGESTION
|
||||
//@ dont-require-annotations: SUGGESTION
|
||||
|
||||
struct S;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//@ dont-require-annotations:SUGGESTION
|
||||
//@ dont-require-annotations: SUGGESTION
|
||||
|
||||
struct X(usize);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
//@ edition:2018
|
||||
//@ dont-require-annotations:SUGGESTION
|
||||
//@ dont-require-annotations: SUGGESTION
|
||||
|
||||
async fn hello() { //~ HELP try adding a return type
|
||||
0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue