Skip to content

Commit 3dc1c38

Browse files
committed
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 rust-lang#135223
1 parent ad211ce commit 3dc1c38

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/ui/invalid-compile-flags/crate-type-flag.rs

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
//@[bin] check-pass
3131

3232
//@[proc_dash_macro] ignore-wasm (proc-macro is not supported)
33+
//@[proc_macro_dash] needs-unwind (panic=abort is not supported)
3334
//@[proc_dash_macro] compile-flags: --crate-type=proc-macro
3435
//@[proc_dash_macro] check-pass
3536

0 commit comments

Comments
 (0)