Skip to content

Commit 24d6024

Browse files
author
The rustc-josh-sync Cronjob Bot
committed
Merge ref '5c49c4f7c839' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: rust-lang/rust@5c49c4f Filtered ref: 866efc3 Upstream diff: rust-lang/rust@44a5b55...5c49c4f This merge was created using https://github.com/rust-lang/josh-sync.
2 parents 86fe2d9 + 866efc3 commit 24d6024

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/tests/compiletest.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ The following test suites are available, with links for more information:
7878

7979
[`run-make`](#run-make-tests) are general purpose tests using Rust programs.
8080

81+
### The build-std test suite
82+
83+
[`build-std`](#build-std-tests) test that -Zbuild-std works.
84+
8185
### Rustdoc test suites
8286

8387
| Test suite | Purpose |
@@ -429,6 +433,12 @@ use cases that require testing in-tree `cargo` in conjunction with in-tree `rust
429433
The `run-make` test suite does not have access to in-tree `cargo` (so it can be the
430434
faster-to-iterate test suite).
431435

436+
### `build-std` tests
437+
438+
The tests in [`tests/build-std`] check that `-Zbuild-std` works. This is currently
439+
just a run-make test suite with a single recipe. The recipe generates test cases
440+
and runs them in parallel.
441+
432442
#### Using Rust recipes
433443

434444
Each test should be in a separate directory with a `rmake.rs` Rust program,

src/tests/ui.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ prefixing each source line are replaced with `LL`). In extremely rare
139139
situations, this mode can be disabled with the directive `//@
140140
compile-flags: -Z ui-testing=no`.
141141

142+
When using `-Z ui-testing=no` the `--diagnostic-width` argument should also
143+
be set to avoid tests failing or passing depending on the width of the terminal
144+
from which the UI test suite is being run.
145+
142146
Note: The line and column numbers for `-->` lines pointing to the test are *not*
143147
normalized, and left as-is. This ensures that the compiler continues to point to
144148
the correct location, and keeps the stderr files readable. Ideally all

0 commit comments

Comments
 (0)