diff options
| author | Erick Tryzelaar <etryzelaar@google.com> | 2025-01-07 23:38:01 +0000 |
|---|---|---|
| committer | Erick Tryzelaar <etryzelaar@google.com> | 2025-01-08 18:00:26 +0000 |
| commit | 49942961a7142e11289d8aaece3803fe7442f3d4 (patch) | |
| tree | 4313455fe41475aacccc0d7bc4570931511410fa /tests/ui/invalid-compile-flags | |
| parent | ad211ced81509462cdfe4c29ed10f97279a0acae (diff) | |
| download | rust-49942961a7142e11289d8aaece3803fe7442f3d4.tar.gz rust-49942961a7142e11289d8aaece3803fe7442f3d4.zip | |
Only test proc-macro invalid compile flags with panic=unwind
Fuchsia explicitly builds rust and all rust targets with `-C panic=abort` to minimize code generation size. However, when compiling a proc-macro with this setting it can cause a warning to be emitted, which breaks `tests/ui/invalid-compile-flags/crate-type-flag.rs`. This hasn't been a problem in the past for us since we compile our proc macros on host, rather than inside Fuchsia. This attempts to fix the issue by explicitly requiring that we're using the unwinder when compiling this test to avoid the warning being emitted. Fixes #135223
Diffstat (limited to 'tests/ui/invalid-compile-flags')
| -rw-r--r-- | tests/ui/invalid-compile-flags/crate-type-flag.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/invalid-compile-flags/crate-type-flag.rs b/tests/ui/invalid-compile-flags/crate-type-flag.rs index 42bd72cbfbf..bc7a0bc46c3 100644 --- a/tests/ui/invalid-compile-flags/crate-type-flag.rs +++ b/tests/ui/invalid-compile-flags/crate-type-flag.rs @@ -30,6 +30,7 @@ //@[bin] check-pass //@[proc_dash_macro] ignore-wasm (proc-macro is not supported) +//@[proc_dash_macro] needs-unwind (panic=abort causes warning to be emitted) //@[proc_dash_macro] compile-flags: --crate-type=proc-macro //@[proc_dash_macro] check-pass |
