-
Notifications
You must be signed in to change notification settings - Fork 946
Open
Labels
a-matchesmatch arms, patterns, blocks, etcmatch arms, patterns, blocks, etc
Description
The following expression:
matches!(stmt, ast::Stmt{kind: ast::StmtKind::MacCall(box ast::MacCallStmt {style : ast::MacStmtStyle::Braces,..}),..})
refuses to get formatted (line formatted, but exceeded maximum width
).
Whereas if I remove the box
, it gets formatted just fine:
matches!(
stmt,
ast::Stmt {
kind: ast::StmtKind::MacCall(ast::MacCallStmt {
style: ast::MacStmtStyle::Braces,
..
}),
..
}
)
(I've never touched rustfmt source code before, but I could try working on this, with some help)
Metadata
Metadata
Assignees
Labels
a-matchesmatch arms, patterns, blocks, etcmatch arms, patterns, blocks, etc