-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Malformed coverage data with a no_mangle function #117788
Copy link
Copy link
Closed
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)C-bugCategory: This is a bug.Category: This is a bug.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Metadata
Metadata
Assignees
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)C-bugCategory: This is a bug.Category: This is a bug.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
I tried to run
cargo llvm-covon this code:I expected the tool to work normally, but instead, this happened:
Please note this is the most minimal reproducible example I've been able to find.
Removing either the
no_mangleattribute or theffi_panic_messagecall does not reproduce the error, but theextern "C"has not effect.I've tried to remove the
abi_stabledependency but putting the required code in the same file or in a different crate (in the same workspace) does not reproduce the error.Associated
abi_stablecodeVersion it worked on
It most recently worked on: 1.73.0
Version with regression
rustc --version --verbose:@rustbot modify labels: +regression-from-stable-to-beta -regression-untriaged