Skip to content

Commit c5925ef

Browse files
committed
Fix directives for lint-non-snake-case-crate
This test fails on targets without unwinding because the proc macro was compiled as the target, not the host. Some targets were explicitly disabled to pass CI, but these directives are more general. Fixes Fuchsia tests.
1 parent 0399709 commit c5925ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/ui/lint/non-snake-case/lint-non-snake-case-crate.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111
// But should fire on non-binary crates.
1212

13-
//@[cdylib_] ignore-musl (dylibs are not supported)
14-
//@[dylib_] ignore-musl (dylibs are not supported)
15-
//@[dylib_] ignore-wasm (dylib is not supported)
16-
//@[proc_macro_] ignore-wasm (dylib is not supported)
13+
//@[cdylib_] needs-dynamic-linking
14+
//@[dylib_] needs-dynamic-linking
15+
//@[proc_macro_] force-host
16+
//@[proc_macro_] no-prefer-dynamic
1717

1818
//@[cdylib_] compile-flags: --crate-type=cdylib
1919
//@[dylib_] compile-flags: --crate-type=dylib

0 commit comments

Comments
 (0)