about summary refs log tree commit diff
path: root/library/std/src/io/error.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-10-13 12:32:19 +0200
committerGitHub <noreply@github.com>2024-10-13 12:32:19 +0200
commit0fa7101a8d5cad234af75eeeef1549df7f2ab0a7 (patch)
tree3143021aea54026ff868570bee4faca78566706a /library/std/src/io/error.rs
parent84dd8cdb228d692bff83eef4b9f9483457ed8be1 (diff)
parent40ca4d8cd3c708bddb4bbba83288d1fe25fe5ab2 (diff)
downloadrust-0fa7101a8d5cad234af75eeeef1549df7f2ab0a7.tar.gz
rust-0fa7101a8d5cad234af75eeeef1549df7f2ab0a7.zip
Rollup merge of #131642 - jieyouxu:build-fail-check-fail, r=Kobzol
Special case error message for a `build-fail` test that failed check build

A `build-fail` test requires that a check build (roughly `--emit=metadata`, no codegen) succeeds but fails later. Previously, if its check build failed, the user will see the error message

```
error: test compilation failed although it shouldn't!
```

which is confusing. Because the test is `build-fail`, we want the test compilation to fail! This error message doesn't account for the difference between a check build and a complete build, so let's special case the error message for a `build-fail` test whose check build failed to instead say

```
error: `build-fail` test is required to pass check build, but check build failed
```

Fixes #130894.
Diffstat (limited to 'library/std/src/io/error.rs')
0 files changed, 0 insertions, 0 deletions