diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-09 09:51:50 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-09 09:51:50 +0300 |
| commit | 12829122bf2216e492e2befb0c1305b5efbfee7d (patch) | |
| tree | 99f3344a32d14593962270caabc4547f20ffe884 /tests/ui/cfg | |
| parent | cffc5c21fc49e86859ea5601a4f80d4446b594e9 (diff) | |
| download | rust-12829122bf2216e492e2befb0c1305b5efbfee7d.tar.gz rust-12829122bf2216e492e2befb0c1305b5efbfee7d.zip | |
Migrate some tests to `dont-require-annotations`
Diffstat (limited to 'tests/ui/cfg')
| -rw-r--r-- | tests/ui/cfg/cfg_false_no_std-2.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/cfg/cfg_false_no_std-2.rs b/tests/ui/cfg/cfg_false_no_std-2.rs index 35e545aae34..349c49412ff 100644 --- a/tests/ui/cfg/cfg_false_no_std-2.rs +++ b/tests/ui/cfg/cfg_false_no_std-2.rs @@ -1,7 +1,6 @@ // Error, the linked empty library is `no_std` and doesn't provide a panic handler. -//@ compile-flags: --error-format=human -//@ error-pattern: `#[panic_handler]` function required, but not found +//@ dont-require-annotations:ERROR //@ dont-check-compiler-stderr //@ aux-build: cfg_false_lib_no_std_before.rs @@ -11,6 +10,7 @@ extern crate cfg_false_lib_no_std_before as _; fn main() {} -// FIXME: The second error is target-dependent. -//FIXME~? ERROR `#[panic_handler]` function required, but not found +//~? ERROR `#[panic_handler]` function required, but not found +// FIXME: This error is target-dependent, could be served by some "optional error" annotation +// instead of `dont-require-annotations`. //FIXME~? ERROR unwinding panics are not supported without std |
