Closed
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.)