Skip to content

rustfmt_skip should have the same effect on warnings when inside and outside a module #1399

Closed
@8573

Description

@8573

I'm using LALRPOP, which generates a Rust file from a build script,
which file I then reference with a mod <filename> item.

The generated file is large and, relative to the style used by
rustfmt, densely formatted, and has many long lines, at which rustfmt
always emits error messages about being unable to shorten them.
rustfmt does, however, manage to format much of the file — expanding
it from 3010 lines to 8265.

How, if at all, could I instruct rustfmt to ignore this file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions