-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
-Clink-dead-code and -Cinstrument-coverage causes symbol already defined compiler error in nightly #137009
Copy link
Copy link
Closed
Labels
-Clink-dead-codeLinkage option: -Clink-dead-codeLinkage option: -Clink-dead-codeA-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)A-monomorphizationArea: MonomorphizationArea: MonomorphizationA-name-manglingArea: Name mangling / decoration aka symbol manglingArea: Name mangling / decoration aka symbol manglingC-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.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
Metadata
Metadata
Assignees
Labels
-Clink-dead-codeLinkage option: -Clink-dead-codeLinkage option: -Clink-dead-codeA-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)A-monomorphizationArea: MonomorphizationArea: MonomorphizationA-name-manglingArea: Name mangling / decoration aka symbol manglingArea: Name mangling / decoration aka symbol manglingC-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.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
With just the following cargo.toml
and a
main.rswith the default contents. RunningResults in:
I've done a bit of work to narrow this down. So either of the flags on their own is fine, it's just the combination that causes the issue.,
I also have a MRE reproduction repo here: https://github.com/xd009642/debug-tarp-issue
Version with regression
So because this happened in a CI job for tarpaulin and we have some flaky tests and I don't use a mac myself I don't have an exact version. But this first occurred in our CI January 13th 2025. This is evident because the mac nightly builds have failed from that date until now. Mac stable and beta still work fine.