From: Philipp Hansch Date: Mon, 8 Apr 2019 19:23:39 +0000 (+0200) Subject: Remove force-host and explain no-prefer-dynamic X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=3ab803845028b02e8c0174020c7ae2c6eb736f8f;p=rust.git Remove force-host and explain no-prefer-dynamic --- 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"]