Skip to content

Fail when recoverable parser errors occurs in ignored files with rustfmt-recursive  #4592

Closed
@sasurau4

Description

@sasurau4

Describe the bug

Fail when formatting recoverable parser errors occurs in ignored files with rustfmt-recursive.
I found it working #4113 with issue-3779/ice.rs

To Reproduce

  1. Add // rustfmt-recursive: true to the head of tests/source/issue-3779/lib.rs
  2. run cargo make test
  3. Fail with following error
error: invalid suffix `x` for integer literal
 --> tests/source/issue-3779/ice.rs:2:5
  |
2 |     1x;
  |     ^^ invalid suffix `x`
  |
  = help: the suffix must be one of the integral types (`u32`, `isize`, etc)

Expected behavior

cargo make test passes

Meta

  • rustfmt version: current master 81ad114

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPanic, non-idempotency, invalid code, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions