Skip to content

Rustfmt command returns an error despite problematic file being ignored and hide_parse_errors is true #3916

Closed
@maplant

Description

@maplant

I have a problematic file that is not able to be parsed. The reason for that is I'm autogenerating symbol names with macros, in a manner that looks like this:

#[no_mangle]
extern "system" fn jni_symbol!( funcName ) ( ... ) -> {} 

Rustfmt is failing to parse this at the token !, but the larger issue is that I'm failing rusty-hooks despite this file being put into ignore, hide_parse_errors being set to true and no error being emitted and rustfmt seemingly handling every other file just fine. I know that this file is the one that is causing issues because commenting it out results in rustfmt returning 0 as it should

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions