File tree 1 file changed +6
-1
lines changed
src/doc/rustc-dev-guide/src/tests
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,13 @@ settings:
190
190
specified atomic widths, e.g. the test with `//@ needs-target-has-atomic: 8,
191
191
16, ptr` will only run if it supports the comma-separated list of atomic
192
192
widths.
193
- - ` needs-dynamic-linking ` - ignores if target does not support dynamic linking
193
+ - ` needs-dynamic-linking ` — ignores if target does not support dynamic linking
194
194
(which is orthogonal to it being unable to create ` dylib ` and ` cdylib ` crate types)
195
+ - ` needs-crate-type ` — ignores if target platform does not support one or more
196
+ of the comma-delimited list of specified crate types. For example,
197
+ ` //@ needs-crate-type: cdylib, proc-macro ` will cause the test to be ignored
198
+ on ` wasm32-unknown-unknown ` target because the target does not support the
199
+ ` proc-macro ` crate type.
195
200
196
201
The following directives will check LLVM support:
197
202
You can’t perform that action at this time.
0 commit comments