Skip to content

--emit=metadata emitting empty .rmeta file #67293

Open
@0dvictor

Description

@0dvictor

At present, rustc --emit=metadata foo.rs generates an empty rmeta file named libfoo.rmeta. The logic behind is that rmeta is not needed for certain crate types. However, I feel we should still save it to a file when user explicitly requested it by --emit=metadata, especially the metadata is always available in memory regardless of output crate types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-metadataArea: Crate metadataT-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