--emit=metadata appears to override --out-dir if the latter is supplied first #40623
Closed as not planned
--emit=metadata appears to override --out-dir if the latter is supplied first #40623
See #40542
Explicitly adding
--out-dir=$(TMPDIR)(supposedly redundant) after--emit=metadataappeared to fix the problem, suggesting that--emit=metadataoverwrites--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-dirafter--emit, so that might explain why this hasn't really come up before.