about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hansch <dev@phansch.net>2019-04-08 21:23:39 +0200
committerPhilipp Hansch <dev@phansch.net>2019-04-08 21:23:39 +0200
commit3ab803845028b02e8c0174020c7ae2c6eb736f8f (patch)
tree4b8770040e387cb962a4d1a8899196c34eeb890b
parent547c5c06678181ddba71f576cd79f2bce7529ca7 (diff)
downloadrust-3ab803845028b02e8c0174020c7ae2c6eb736f8f.tar.gz
rust-3ab803845028b02e8c0174020c7ae2c6eb736f8f.zip
Remove force-host and explain no-prefer-dynamic
-rw-r--r--tests/ui/crashes/auxiliary/proc_macro_crash.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ui/crashes/auxiliary/proc_macro_crash.rs b/tests/ui/crashes/auxiliary/proc_macro_crash.rs
index d708e223109..71b10ed4db4 100644
--- a/tests/ui/crashes/auxiliary/proc_macro_crash.rs
+++ b/tests/ui/crashes/auxiliary/proc_macro_crash.rs
@@ -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"]