Skip to content

dep-info rmeta path is wrong #68839

Closed
@ehuss

Description

@ehuss

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

No one assigned

    Labels

    C-bugCategory: This is a bug.T-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