-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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.
Description
The path to the rmeta file in the dep-info file is wrong. It is missing the lib
prefix.
rustc --emit=dep-info,metadata --crate-type lib foo.rs
foo.d
will contain foo.rmeta: foo.rs
, but I think it should be libfoo.rmeta: foo.rs
because the filename is libfoo.rmeta
.
The crate type doesn't matter. A "bin" type will also emit foo.rmeta
, but bin types (confusingly) also use libfoo.rmeta
.
(This doesn't really affect Cargo, as it ignores these filenames.)
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.