build-fail directive: make explanation more uniform

The last part of the paragraph did not fit
This commit is contained in:
Tshepang Mbambo 2025-06-30 06:15:08 +02:00 committed by GitHub
parent 56283410f2
commit 787a4cc90f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.