We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 547c5c0 commit 3ab8038Copy full SHA for 3ab8038
tests/ui/crashes/auxiliary/proc_macro_crash.rs
@@ -1,5 +1,8 @@
1
-// force-host
2
// no-prefer-dynamic
+// ^ compiletest by default builds all aux files as dylibs, but we don't want that for proc-macro
3
+// crates. If we don't set this, compiletest will override the `crate_type` attribute below and
4
+// compile this as dylib. Removing this then causes the test to fail because a `dylib` crate can't
5
+// contain a proc-macro.
6
7
#![feature(repr128)]
8
#![crate_type = "proc-macro"]
0 commit comments