Skip to content

Commit

Permalink
Auto merge of #130860 - tmandry:fix-directives, r=jieyouxu
Browse files Browse the repository at this point in the history
Fix directives for lint-non-snake-case-crate

This test fails on targets without unwinding or with `--target-rustcflags=-Cpanic=abort` 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.

* `needs-dynamic-linking` is self explanatory
* `force-host` for proc macros
* `no-prefer-dynamic` is apparently also used for proc macros

Note that `needs-unwind` can also be useful for situations other than proc macros where unwinding is necessary.

r? `@jieyouxu`

try-job: test-various
  • Loading branch information
bors committed Oct 30, 2024
2 parents 8d61419 + ff413f4 commit c5569e0
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit c5569e0

Please sign in to comment.