Skip to content

--emit=metadata appears to override --out-dir if the latter is supplied first #40623

Closed as not planned
@abonander

Description

@abonander

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions