Skip to content

Commit 1e37c10

Browse files
author
The rustc-josh-sync Cronjob Bot
committed
Merge ref 'fd2eb391d032' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: fd2eb391d032181459773f3498c17b198513e0d0 Filtered ref: 1ea8d5f This merge was created using https://github.com/rust-lang/josh-sync.
2 parents 2ed5381 + 1ea8d5f commit 1e37c10

File tree

6 files changed

+12
-82
lines changed

6 files changed

+12
-82
lines changed

src/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
- [Cranelift codegen backend](./tests/codegen-backend-tests/cg_clif.md)
3636
- [GCC codegen backend](./tests/codegen-backend-tests/cg_gcc.md)
3737
- [Performance testing](./tests/perf.md)
38-
- [Suggest tests tool](./tests/suggest-tests.md)
3938
- [Misc info](./tests/misc.md)
4039
- [Debugging the compiler](./compiler-debugging.md)
4140
- [Using the tracing/logging instrumentation](./tracing.md)

src/building/bootstrapping/debugging-bootstrap.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,17 @@ For `#[instrument]`, it's recommended to:
168168

169169
### Profiling bootstrap
170170

171-
You can use the `COMMAND` tracing target to trace execution of most commands spawned by bootstrap. If you also use the `BOOTSTRAP_PROFILE=1` environment variable, bootstrap will generate a Chrome JSON trace file, which can be visualized in Chrome's `chrome://tracing` page or on https://ui.perfetto.dev.
171+
You can set the `BOOTSTRAP_PROFILE=1` environment variable to enable command execution profiling during bootstrap. This generates:
172+
173+
* A Chrome trace file (for visualization in `chrome://tracing` or [Perfetto](https://ui.perfetto.dev)) if tracing is enabled via `BOOTSTRAP_TRACING=COMMAND=trace`
174+
* A plain-text summary file, `bootstrap-profile-{pid}.txt`, listing all commands sorted by execution time (slowest first), along with cache hits and working directories
175+
176+
Note: the `.txt` report is always generated when `BOOTSTRAP_PROFILE=1` is set — tracing is not required.
177+
178+
Example usage:
172179

173180
```bash
174-
$ BOOTSTRAP_TRACING=COMMAND=trace BOOTSTRAP_PROFILE=1 ./x build library
181+
$ BOOTSTRAP_PROFILE=1 BOOTSTRAP_TRACING=COMMAND=trace ./x build library
175182
```
176183

177184
### rust-analyzer integration?

src/building/quickstart.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ and check the output.
6161
Use `--bless` if you've made a change and want to update the `.stderr` files
6262
with the new output.
6363

64-
> `./x suggest` can also be helpful for suggesting which tests to run after a
65-
> change.
66-
6764
Congrats, you are now ready to make a change to the compiler! If you have more
6865
questions, [the full chapter](./how-to-build-and-run.md) might contain the
6966
answers, and if it doesn't, feel free to ask for help on

src/building/suggested.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -270,23 +270,6 @@ run the tests at some later time. You can then use `git bisect` to track down
270270
is that you are left with a fairly fine-grained set of commits at the end, all
271271
of which build and pass tests. This often helps reviewing.
272272

273-
## `x suggest`
274-
275-
The `x suggest` subcommand suggests (and runs) a subset of the extensive
276-
`rust-lang/rust` tests based on files you have changed. This is especially
277-
useful for new contributors who have not mastered the arcane `x` flags yet and
278-
more experienced contributors as a shorthand for reducing mental effort. In all
279-
cases it is useful not to run the full tests (which can take on the order of
280-
tens of minutes) and just run a subset which are relevant to your changes. For
281-
example, running `tidy` and `linkchecker` is useful when editing Markdown files,
282-
whereas UI tests are much less likely to be helpful. While `x suggest` is a
283-
useful tool, it does not guarantee perfect coverage (just as PR CI isn't a
284-
substitute for bors). See the [dedicated chapter](../tests/suggest-tests.md) for
285-
more information and contribution instructions.
286-
287-
Please note that `x suggest` is in a beta state currently and the tests that it
288-
will suggest are limited.
289-
290273
## Configuring `rustup` to use nightly
291274

292275
Some parts of the bootstrap process uses pinned, nightly versions of tools like

src/rustdoc-internals/rustdoc-test-suite.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ Similar to shell commands,
5555
directives can extend across multiple lines if their last char is `\`.
5656
In this case, the start of the next line should be `//`, with no `@`.
5757

58+
Similar to compiletest directives, besides a space you can also use a colon `:` to separate
59+
the directive name and the arguments, however a space is preferred for HtmlDocCk directives.
60+
5861
Use the special string `{{channel}}` in XPaths, `PATTERN` arguments and [snapshot files](#snapshot)
5962
if you'd like to refer to the URL `https://doc.rust-lang.org/CHANNEL` where `CHANNEL` refers to the
6063
current release channel (e.g, `stable` or `nightly`).

src/tests/suggest-tests.md

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)