diff options
| author | Philipp Hansch <dev@phansch.net> | 2019-04-08 21:23:39 +0200 |
|---|---|---|
| committer | Philipp Hansch <dev@phansch.net> | 2019-04-08 21:23:39 +0200 |
| commit | 3ab803845028b02e8c0174020c7ae2c6eb736f8f (patch) | |
| tree | 4b8770040e387cb962a4d1a8899196c34eeb890b | |
| parent | 547c5c06678181ddba71f576cd79f2bce7529ca7 (diff) | |
| download | rust-3ab803845028b02e8c0174020c7ae2c6eb736f8f.tar.gz rust-3ab803845028b02e8c0174020c7ae2c6eb736f8f.zip | |
Remove force-host and explain no-prefer-dynamic
| -rw-r--r-- | tests/ui/crashes/auxiliary/proc_macro_crash.rs | 5 |
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"] |
