dtolnay / dtolnay/trybuild

Calling process::exit(1) from a proc macro looks successful to trybuild, but failure to cargo

Open
#229 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
998
Forks
84
PR merge metrics
No merged PRs in 30d

Description

```console
test tests/ui/error.rs ... error
Expected test case to fail to compile, but it succeeded.
```

Even though, compiling the same macro invocation directly using cargo, cargo sees that it failed and exits nonzero.

```console
$ cargo check
Checking repro v0.0.0
error: could not compile `repro` (bin "repro")

$ echo $?
101
```

Not sure whether there is any way to discern this from cargo's `--message-format=json` representation.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.