Skip to content

nightly regression: coverage contains bad paths #150020

@alex

Description

@alex

Code

This issue concerns computing coverage. When computing coverage for https://github.com/pyca/cryptography, when I do an LCOV export (https://github.com/pyca/cryptography/blob/main/noxfile.py#L351-L376), I'm seeing a bad path in the output:

SF:/home/runner/work/cryptography/cryptography/library/std/src/sys/thread_local/native/mod.rs
FN:75,_RNCNKNvNtNtCs8lnbTqlVUHL_4pyo38internal5state12ATTACH_COUNT0s_0Csi2CMV9oxp0h_17cryptography_rust
FN:75,_RNCNKNvNtNtCs8lnbTqlVUHL_4pyo38internal5state12ATTACH_COUNT0s_0Cs7Va9g7vFn4f_17cryptography_cffi
FNDA:1359856,_RNCNKNvNtNtCs8lnbTqlVUHL_4pyo38internal5state12ATTACH_COUNT0s_0Csi2CMV9oxp0h_17cryptography_rust
FNDA:62,_RNCNKNvNtNtCs8lnbTqlVUHL_4pyo38internal5state12ATTACH_COUNT0s_0Cs7Va9g7vFn4f_17cryptography_cffi
FNF:1
FNH:1
DA:75,1359918
BRF:0
BRH:0
LF:1
LH:1
end_of_record

library/std/src obviously (?) does not exist inside the cryptography root, it comes from within rustc!

rustc paths properly should look like one of these: https://github.com/pyca/cryptography/blob/main/noxfile.py#L369-L372

Version it worked on

It most recently worked on: rustc 1.94.0-nightly (fa5eda1 2025-12-12)

Version with regression

It regressed on: rustc 1.94.0-nightly (0208ee0 2025-12-14)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)C-bugCategory: This is a bug.E-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-untriagedUntriaged performance or correctness regression.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions