Skip to content

Content of *.d file doesn’t match actual outputs #110589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bzEq opened this issue Apr 20, 2023 · 3 comments
Closed

Content of *.d file doesn’t match actual outputs #110589

bzEq opened this issue Apr 20, 2023 · 3 comments
Labels
A-metadata Area: Crate metadata C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@bzEq
Copy link
Contributor

bzEq commented Apr 20, 2023

For code

// foo.rs
pub fn foo() {}

compiled with rustc --crate-type=lib foo.rs --emit=metadata,dep-info,link, we have output files

foo.d  foo.rs  libfoo.rlib  libfoo.rmeta

libfoo.rmeta doesn't match what's inside foo.d

foo.rmeta: foo.rs

libfoo.rlib: foo.rs

foo.d: foo.rs

foo.rs:

This can be reproduced by

rustc 1.71.0-nightly (39c6804b9 2023-04-19)
binary: rustc
commit-hash: 39c6804b92aa202369e402525cee329556bc1db0
commit-date: 2023-04-19
host: x86_64-unknown-linux-gnu
release: 1.71.0-nightly
LLVM version: 16.0.2
@bzEq bzEq changed the title Content of *.d file doesn’t match real outputs Content of *.d file doesn’t match actual outputs Apr 20, 2023
@bjorn3 bjorn3 added the C-bug Category: This is a bug. label Apr 20, 2023
@bjorn3
Copy link
Member

bjorn3 commented Apr 20, 2023

I think

pub fn output_path(&self, flavor: OutputType) -> PathBuf {
is wrong for the metadata output.

@jyn514 jyn514 added A-metadata Area: Crate metadata T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 20, 2023
@ehuss
Copy link
Contributor

ehuss commented Apr 20, 2023

I believe this is a duplicate of #68839.

@bjorn3
Copy link
Member

bjorn3 commented Apr 21, 2023

Looks like it.

@bjorn3 bjorn3 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-metadata Area: Crate metadata C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants