-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
--emit=metadata emitting empty .rmeta file #67293
Copy link
Copy link
Open
Labels
A-metadataArea: Crate metadataArea: Crate metadataT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-metadataArea: Crate metadataArea: Crate metadataT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
At present,
rustc --emit=metadata foo.rsgenerates an empty rmeta file namedlibfoo.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.