--emit=metadata
appears to override --out-dir
if the latter is supplied first
#40623
Labels
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
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.The text was updated successfully, but these errors were encountered: