diff options
| author | Tshepang Mbambo <hopsi@tuta.io> | 2025-06-30 06:15:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-30 06:15:08 +0200 |
| commit | 787a4cc90f540b979f31f3f24e103f35295bf036 (patch) | |
| tree | a5180dedd744640b51222fe417f6d311124eb792 /src | |
| parent | 56283410f26472ec72a6673a1cbb2d8c4efdff15 (diff) | |
| download | rust-787a4cc90f540b979f31f3f24e103f35295bf036.tar.gz rust-787a4cc90f540b979f31f3f24e103f35295bf036.zip | |
build-fail directive: make explanation more uniform
The last part of the paragraph did not fit
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/tests/ui.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/tests/ui.md b/src/doc/rustc-dev-guide/src/tests/ui.md index 09dc476d68e..65bd89bafe6 100644 --- a/src/doc/rustc-dev-guide/src/tests/ui.md +++ b/src/doc/rustc-dev-guide/src/tests/ui.md @@ -453,9 +453,9 @@ even run the resulting program. Just add one of the following - `//@ check-fail` — compilation should fail (the codegen phase is skipped). This is the default for UI tests. - `//@ build-fail` — compilation should fail during the codegen phase. - This will run `rustc` twice, once to verify that it compiles successfully - without the codegen phase, then a second time the full compile should - fail. + This will run `rustc` twice: + - First time is to ensure that the compile succeeds without the codegen phase + - Second time is to ensure that the full compile fails - `//@ run-fail` — compilation should succeed, but running the resulting binary should fail. |
