Skip to content

Commit d96df45

Browse files
committed
Migrate some tests to dont-require-annotations
1 parent 2711174 commit d96df45

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

tests/ui/cfg/cfg_false_no_std-2.rs

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

3-
//@ compile-flags: --error-format=human
4-
//@ error-pattern: `#[panic_handler]` function required, but not found
3+
//@ dont-require-annotations:ERROR
54
//@ dont-check-compiler-stderr
65
//@ aux-build: cfg_false_lib_no_std_before.rs
76

@@ -11,6 +10,7 @@ extern crate cfg_false_lib_no_std_before as _;
1110

1211
fn main() {}
1312

14-
// FIXME: The second error is target-dependent.
15-
//FIXME~? ERROR `#[panic_handler]` function required, but not found
13+
//~? ERROR `#[panic_handler]` function required, but not found
14+
// FIXME: This error is target-dependent, could be served by some "optional error" annotation
15+
// instead of `dont-require-annotations`.
1616
//FIXME~? ERROR unwinding panics are not supported without std

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// ignore-tidy-linelength
22
//@ build-fail
3-
//@ compile-flags: --error-format=human
4-
//@ error-pattern: cannot link together two panic runtimes: panic_runtime_unwind and panic_runtime_unwind2
3+
//@ dont-require-annotations:ERROR
54
//@ dont-check-compiler-stderr
65
//@ aux-build:panic-runtime-unwind.rs
76
//@ aux-build:panic-runtime-unwind2.rs
@@ -16,7 +15,8 @@ extern crate panic_runtime_lang_items;
1615

1716
fn main() {}
1817

19-
// FIXME: The second and third errors are target-dependent.
20-
//FIXME~? ERROR cannot link together two panic runtimes: panic_runtime_unwind and panic_runtime_unwind2
18+
//~? ERROR cannot link together two panic runtimes: panic_runtime_unwind and panic_runtime_unwind2
19+
// FIXME: These errors are target-dependent, could be served by some "optional error" annotation
20+
// instead of `dont-require-annotations`.
2121
//FIXME~? ERROR the linked panic runtime `panic_runtime_unwind2` is not compiled with this crate's panic strategy `abort`
2222
//FIXME~? ERROR the crate `panic_runtime_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// ignore-tidy-linelength
22
//@ build-fail
3-
//@ compile-flags: --error-format=human
4-
//@ error-pattern: the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
3+
//@ dont-require-annotations:ERROR
54
//@ dont-check-compiler-stderr
65
//@ aux-build:panic-runtime-unwind.rs
76
//@ compile-flags:-C panic=abort
@@ -10,7 +9,8 @@ extern crate panic_runtime_unwind;
109

1110
fn main() {}
1211

13-
// FIXME: The first and third errors are target-dependent.
12+
//~? ERROR the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
13+
// FIXME: These errors are target-dependent, could be served by some "optional error" annotation
14+
// instead of `dont-require-annotations`.
1415
//FIXME~? ERROR cannot link together two panic runtimes: panic_unwind and panic_runtime_unwind
15-
//FIXME~? ERROR the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
1616
//FIXME~? ERROR the crate `panic_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// ignore-tidy-linelength
22
//@ build-fail
3-
//@ compile-flags: --error-format=human
4-
//@ error-pattern: the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
3+
//@ dont-require-annotations:ERROR
54
//@ dont-check-compiler-stderr
65
//@ aux-build:panic-runtime-unwind.rs
76
//@ aux-build:wants-panic-runtime-unwind.rs
@@ -11,7 +10,8 @@ extern crate wants_panic_runtime_unwind;
1110

1211
fn main() {}
1312

14-
// FIXME: The first and third errors are target-dependent.
13+
//~? ERROR the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
14+
// FIXME: These errors are target-dependent, could be served by some "optional error" annotation
15+
// instead of `dont-require-annotations`.
1516
//FIXME~? ERROR cannot link together two panic runtimes: panic_unwind and panic_runtime_unwind
16-
//FIXME~? ERROR the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
1717
//FIXME~? ERROR the crate `panic_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`

0 commit comments

Comments
 (0)