Skip to content

pretty-printer loses parens around expr_fail in cast #953

@jruderman

Description

@jruderman
fn f() { (fail "boo") as float / 2.0; } 

becomes

fn f() { (fail "boo" as float) / 2.0; } 

which becomes

fn f() { fail "boo" as float / 2.0; } 

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-prettyArea: Pretty printing (including `-Z unpretty`)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions