about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-02-02 06:52:15 +0100
committerGitHub <noreply@github.com>2023-02-02 06:52:15 +0100
commit643fc97fd3b3f4f34eb2d66af1deac9218835527 (patch)
tree7f043e0e0aee64c1f2d9a2f203c57518ba5e403e
parent75ea3a9948b77c3ef2471545b9c818ab1a724dcd (diff)
parentfb3857808253c3513ffff1f2c2b033081ae24cf5 (diff)
downloadrust-643fc97fd3b3f4f34eb2d66af1deac9218835527.tar.gz
rust-643fc97fd3b3f4f34eb2d66af1deac9218835527.zip
Rollup merge of #107576 - P1n3appl3:master, r=tmandry
Add proc-macro boilerplate to crt-static test

I was seeing this failure when running ui tests with with a `-Cpanic=abort` stdlib targeting fuchsia:

```
---- [ui] tests/ui/proc-macro/crt-static.rs stdout ----
normalized stderr:
warning: building proc macro crate with `panic=abort` may crash the compiler should the proc-macro panic

warning: 1 warning emitted

The actual stderr differed from the expected stderr.
```

`force-host` was enough to stop it from running/failing, not sure if I should also add `needs-unwind`?
-rw-r--r--tests/ui/proc-macro/crt-static.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/crt-static.rs b/tests/ui/proc-macro/crt-static.rs
index 6103acb7b6b..020128fa214 100644
--- a/tests/ui/proc-macro/crt-static.rs
+++ b/tests/ui/proc-macro/crt-static.rs
@@ -5,6 +5,9 @@
 // ignore-wasm32
 // ignore-sgx no support for proc-macro crate type
 // build-pass
+// force-host
+// no-prefer-dynamic
+
 #![crate_type = "proc-macro"]
 
 // FIXME: This don't work when crate-type is specified by attribute