Skip to content

missing_debug_implementations misses structs exported from other crates #44304

Closed as not planned
@clarfonthey

Description

@clarfonthey

For example, std::str::SplitWhitespace does not have a debug implementation (see: PR #44303), but the lint didn't trigger. I'd consider this a bug; if there isn't a debug implementation for an exported struct, the user should have to put allow(missing_debug_implementations) to suppress it if they can't fix it themself.

This probably applies to missing_docs too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.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