Skip to content

Commit 6c7dc50

Browse files
authored
Merge pull request #4197 from rust-lang/rustup-2025-02-19
Automatic Rustup
2 parents 4a3509f + 21a4295 commit 6c7dc50

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

examples/rustc-driver-interacting-with-the-ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl rustc_driver::Callbacks for MyCallbacks {
7575
let item = hir_krate.item(id);
7676
// Use pattern-matching to find a specific node inside the main function.
7777
if let rustc_hir::ItemKind::Fn(_, _, body_id) = item.kind {
78-
let expr = &tcx.hir().body(body_id).value;
78+
let expr = &tcx.hir_body(body_id).value;
7979
if let rustc_hir::ExprKind::Block(block, _) = expr.kind {
8080
if let rustc_hir::StmtKind::Let(let_stmt) = block.stmts[0].kind {
8181
if let Some(expr) = let_stmt.init {

src/building/bootstrapping/debugging-bootstrap.md

Lines changed: 8 additions & 0 deletions
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)