File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/doc/rustc-dev-guide/src/tests Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,13 @@ settings:
190190 specified atomic widths, e.g. the test with `//@ needs-target-has-atomic: 8,
191191 16, ptr` will only run if it supports the comma-separated list of atomic
192192 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
194194 (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.
195200
196201The following directives will check LLVM support:
197202
You can’t perform that action at this time.
0 commit comments