Fix spurious error when running build --stage 2 compiler/rustc
#96859
+28
−4
build --stage 2 compiler/rustc
#96859