Skip to content

Commit 3ab8038

Browse files
committed
Remove force-host and explain no-prefer-dynamic
1 parent 547c5c0 commit 3ab8038

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/ui/crashes/auxiliary/proc_macro_crash.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
// force-host
21
// no-prefer-dynamic
2+
// ^ 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.
36

47
#![feature(repr128)]
58
#![crate_type = "proc-macro"]

0 commit comments

Comments
 (0)