Skip to content

Commit 05ba1a4

Browse files
committed
rustc-dev-guide: document COMPILER and COMPILER_FOR tracing targets
1 parent 7b11816 commit 05ba1a4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/doc/rustc-dev-guide/src/building/bootstrapping/debugging-bootstrap.md

+8
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ $ BOOTSTRAP_TRACING=CONFIG_HANDLING=TRACE ./x build library --stage 1
7676

7777
[tracing-env-filter]: https://docs.rs/tracing-subscriber/0.3.19/tracing_subscriber/filter/struct.EnvFilter.html
7878

79+
##### FIXME(#96176): specific tracing for `compiler()` vs `compiler_for()`
80+
81+
The additional targets `COMPILER` and `COMPILER_FOR` are used to help trace what
82+
`builder.compiler()` and `builder.compiler_for()` does. They should be removed
83+
if [#96176][cleanup-compiler-for] is resolved.
84+
85+
[cleanup-compiler-for]: https://github.com/rust-lang/rust/issues/96176
86+
7987
### Using `tracing` in bootstrap
8088

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

0 commit comments

Comments
 (0)