From 3ab803845028b02e8c0174020c7ae2c6eb736f8f Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Mon, 8 Apr 2019 21:23:39 +0200 Subject: [PATCH] Remove force-host and explain no-prefer-dynamic --- tests/ui/crashes/auxiliary/proc_macro_crash.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"] -- 2.44.0