Skip to content

Commit e26e54d

Browse files
author
The rustc-josh-sync Cronjob Bot
committed
Merge ref '6bcdcc73bd11' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: 6bcdcc73bd11568fd85f5a38b58e1eda054ad1cd Filtered ref: 6cc4ce7 This merge was created using https://github.com/rust-lang/josh-sync.
2 parents 431bb2a + 6cc4ce7 commit e26e54d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/building/bootstrapping/debugging-bootstrap.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ if [#96176][cleanup-compiler-for] is resolved.
123123

124124
[cleanup-compiler-for]: https://github.com/rust-lang/rust/issues/96176
125125

126+
### Rendering step graph
127+
128+
When you run bootstrap with the `BOOTSTRAP_TRACING` environment variable configured, bootstrap will automatically output a DOT file that shows all executed steps and their dependencies. The files will have a prefix `bootstrap-steps`. You can use e.g. `xdot` to visualize the file or e.g. `dot -Tsvg` to convert the DOT file to a SVG file.
129+
130+
A separate DOT file will be outputted for dry-run and non-dry-run execution.
131+
126132
### Using `tracing` in bootstrap
127133

128134
Both `tracing::*` macros and the `tracing::instrument` proc-macro attribute need to be gated behind `tracing` feature. Examples:

src/stability.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,7 @@ the `deprecated_in_future` lint is triggered which is default `allow`, but most
181181
of the standard library raises it to a warning with
182182
`#![warn(deprecated_in_future)]`.
183183

184+
## unstable_feature_bound
185+
The `#[unstable_feature_bound(foo)]` attribute can be used together with `#[unstable]` attribute to mark an `impl` of stable type and stable trait as unstable. In std/core, an item annotated with `#[unstable_feature_bound(foo)]` can only be used by another item that is also annotated with `#[unstable_feature_bound(foo)]`. Outside of std/core, using an item with `#[unstable_feature_bound(foo)]` requires the feature to be enabled with `#![feature(foo)]` attribute on the crate. Currently, only `impl`s and free functions can be annotated with `#[unstable_feature_bound]`.
186+
184187
[blog]: https://www.ralfj.de/blog/2018/07/19/const.html

0 commit comments

Comments
 (0)