Skip to content

Leading pipes in patterns need to be preserved in the AST #76182

Closed

Description

The following code:

fn main() {
     match () { | () => () }
}

is currently pretty-printed as:

fn main() { match () { () => (), } }

If this occurs in a macro invocation, it leads to an instance of #43081

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-prettyArea: Pretty printing (including `-Z unpretty`)A-proc-macrosArea: Procedural macrosC-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions