Closed as not planned
Closed as not planned
Description
See #40542
Explicitly adding --out-dir=$(TMPDIR)
(supposedly redundant) after --emit=metadata
appeared to fix the problem, suggesting that --emit=metadata
overwrites --out-dir
(which is included in $(RUSTC)
) with the current directory (?).
This may not depend on the exact value of --emit
; Cargo always appears to write --out-dir
after --emit
, so that might explain why this hasn't really come up before.