Skip to content

Commit 06dd9e2

Browse files
committed
compiletest: Trim the value of dont-require-annotations
1 parent ad72ba2 commit 06dd9e2

10 files changed

+10
-10
lines changed

src/tools/compiletest/src/header.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ impl TestProps {
580580
config.parse_name_value_directive(ln, DONT_REQUIRE_ANNOTATIONS)
581581
{
582582
self.dont_require_annotations
583-
.insert(ErrorKind::expect_from_user_str(&err_kind));
583+
.insert(ErrorKind::expect_from_user_str(err_kind.trim()));
584584
}
585585
},
586586
);

tests/ui/async-await/suggest-missing-await.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ edition:2018
2-
//@ dont-require-annotations:SUGGESTION
2+
//@ dont-require-annotations: SUGGESTION
33

44
fn take_u32(_x: u32) {}
55

tests/ui/cast/cast-as-bool.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ dont-require-annotations:SUGGESTION
1+
//@ dont-require-annotations: SUGGESTION
22

33
fn main() {
44
let u = 5 as bool; //~ ERROR cannot cast `i32` as `bool`

tests/ui/cfg/cfg_false_no_std-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Error, the linked empty library is `no_std` and doesn't provide a panic handler.
22

3-
//@ dont-require-annotations:ERROR
3+
//@ dont-require-annotations: ERROR
44
//@ dont-check-compiler-stderr
55
//@ aux-build: cfg_false_lib_no_std_before.rs
66

tests/ui/panic-runtime/two-panic-runtimes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ignore-tidy-linelength
22
//@ build-fail
3-
//@ dont-require-annotations:ERROR
3+
//@ dont-require-annotations: ERROR
44
//@ dont-check-compiler-stderr
55
//@ aux-build:panic-runtime-unwind.rs
66
//@ aux-build:panic-runtime-unwind2.rs

tests/ui/panic-runtime/want-abort-got-unwind.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ignore-tidy-linelength
22
//@ build-fail
3-
//@ dont-require-annotations:ERROR
3+
//@ dont-require-annotations: ERROR
44
//@ dont-check-compiler-stderr
55
//@ aux-build:panic-runtime-unwind.rs
66
//@ compile-flags:-C panic=abort

tests/ui/panic-runtime/want-abort-got-unwind2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ignore-tidy-linelength
22
//@ build-fail
3-
//@ dont-require-annotations:ERROR
3+
//@ dont-require-annotations: ERROR
44
//@ dont-check-compiler-stderr
55
//@ aux-build:panic-runtime-unwind.rs
66
//@ aux-build:wants-panic-runtime-unwind.rs

tests/ui/parser/inverted-parameters.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ dont-require-annotations:SUGGESTION
1+
//@ dont-require-annotations: SUGGESTION
22

33
struct S;
44

tests/ui/suggestions/suggest-ref-mut.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ dont-require-annotations:SUGGESTION
1+
//@ dont-require-annotations: SUGGESTION
22

33
struct X(usize);
44

tests/ui/typeck/issue-90027-async-fn-return-suggestion.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ edition:2018
2-
//@ dont-require-annotations:SUGGESTION
2+
//@ dont-require-annotations: SUGGESTION
33

44
async fn hello() { //~ HELP try adding a return type
55
0

0 commit comments

Comments
 (0)