mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 14:07:04 +00:00
compiletest: Trim the value of dont-require-annotations
This commit is contained in:
parent
ad72ba2e2c
commit
06dd9e2d20
@ -580,7 +580,7 @@ impl TestProps {
|
||||
config.parse_name_value_directive(ln, DONT_REQUIRE_ANNOTATIONS)
|
||||
{
|
||||
self.dont_require_annotations
|
||||
.insert(ErrorKind::expect_from_user_str(&err_kind));
|
||||
.insert(ErrorKind::expect_from_user_str(err_kind.trim()));
|
||||
}
|
||||
},
|
||||
);
|
||||
|
@ -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…
Reference in New Issue
Block a user