]> git.lizzy.rs Git - rust.git/commitdiff
Remove force-host and explain no-prefer-dynamic
authorPhilipp Hansch <dev@phansch.net>
Mon, 8 Apr 2019 19:23:39 +0000 (21:23 +0200)
committerPhilipp Hansch <dev@phansch.net>
Mon, 8 Apr 2019 19:23:39 +0000 (21:23 +0200)
tests/ui/crashes/auxiliary/proc_macro_crash.rs

index d708e22310915e0c239cdf9bd440d65abd0d217b..71b10ed4db4d4a6bdc794261df1fc84b4ea5ffcf 100644 (file)
@@ -1,5 +1,8 @@
-// force-host
 // no-prefer-dynamic
+// ^ compiletest by default builds all aux files as dylibs, but we don't want that for proc-macro
+// crates. If we don't set this, compiletest will override the `crate_type` attribute below and
+// compile this as dylib. Removing this then causes the test to fail because a `dylib` crate can't
+// contain a proc-macro.
 
 #![feature(repr128)]
 #![crate_type = "proc-macro"]