Skip to content

module-level rustfmt::skip fails with confusing error #132776

Open
@andrewbanchich

Description

@andrewbanchich

https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=73768e89fe43b087349454c8cf2bf2c9

i would have expected / liked to disable rustfmt for the entire module instead of needing to place it on every item.

also, the error seems pretty confusing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)A-diagnosticsArea: Messages for errors, warnings, and lintsA-tool-attributesArea: tool attributes like `#[rustfmt::skip]`C-bugCategory: This is a bug.D-confusingDiagnostics: Confusing error or lint that should be reworked.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language 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