Skip to content

PatternError::StaticInPattern seems to be dead code #68395

Closed
@Centril

Description

@Centril

https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/hair/pattern/struct.PatCtxt.html#method.report_inlining_errors never hits PatternError::StaticInPattern in practice it seems. We should check if it is actually unreachable.

cc @oli-obk

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.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