Skip to content

Commit

Permalink
Rollup merge of #107576 - P1n3appl3:master, r=tmandry
Browse files Browse the repository at this point in the history
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`?
  • Loading branch information
compiler-errors authored Feb 2, 2023
2 parents abd02cc + fb38578 commit e3c0499
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ui/proc-macro/crt-static.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3c0499

Please sign in to comment.