Skip to content

rustfmt cannot format code with if_while_or_patterns feature #2511

Closed
@topecongiro

Description

@topecongiro

Example

#![feature(if_while_or_patterns)]

fn main() {
    if let 0 | 1 = 0 {
        println!("hello, world");
    };
}

We need to update rustc-ap-syntax and implement formatting if_while_or_patterns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPanic, non-idempotency, invalid code, etc.p-medium

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions