Open
Description
In rustc, I added one line of code between L754 and L755
rust/compiler/rustc_resolve/src/late/diagnostics.rs
Lines 754 to 755 in 84f67a5
I added this code
tracing::info!("macro_def_id: {:?}", self.r.tcx.def_path_str(span.ctxt().outer_expn_data().macro_def_id.unwrap()));
And I build it using:
./x build --stage 1
And run it on this code by rustc +stage1 xxx
struct Foo {
x: i32
}
impl Foo {
fn foo(&self) {
let _ = format!("{x}"); //~ ERROR cannot find value `x` in this scope [E0425]
}
}
fn main(){}
I expected to see this happen:
it print something
Instead, this happened:
It stucked
Meta
rustc --version --verbose
:
rustc 1.89.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.89.0-dev
LLVM version: 20.1.5
Backtrace
<backtrace>