Skip to content

Don’t insert coverage counters for unreachable!() code #80549

Open
@maboesanman

Description

@maboesanman

With the introduction of source based code coverage, I ran into this quirk:

73A8B6C2-5494-4D7C-AA02-6AC39614CA60

This seems like it should be a fully covered function but an unreachable counter has been placed on the invocation of the unreachable!() macro.

Would it be possible to make calls to unreachable skip the insert of the counter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)C-feature-requestCategory: A feature request, i.e: not implemented / a PR.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