Allow attributes on match arms
RFC: 0008-match-arm-attributes
This commit is contained in:
parent
3d05e7f9cd
commit
1452c9c04a
8 changed files with 66 additions and 3 deletions
|
@ -726,6 +726,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
|
|||
|
||||
fn arm(&self, _span: Span, pats: Vec<@ast::Pat> , expr: @ast::Expr) -> ast::Arm {
|
||||
ast::Arm {
|
||||
attrs: vec!(),
|
||||
pats: pats,
|
||||
guard: None,
|
||||
body: expr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue