-
-
Notifications
You must be signed in to change notification settings - Fork 15k
dep-info rmeta path is wrong #68839
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-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
C-bugCategory: This is a bug.Category: This is a bug.T-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.
The path to the rmeta file in the dep-info file is wrong. It is missing the
libprefix.rustc --emit=dep-info,metadata --crate-type lib foo.rsfoo.dwill containfoo.rmeta: foo.rs, but I think it should belibfoo.rmeta: foo.rsbecause the filename islibfoo.rmeta.The crate type doesn't matter. A "bin" type will also emit
foo.rmeta, but bin types (confusingly) also uselibfoo.rmeta.(This doesn't really affect Cargo, as it ignores these filenames.)