1
Fork 0

Allow attributes on match arms

RFC: 0008-match-arm-attributes
This commit is contained in:
Steven Fackler 2014-04-22 21:54:48 -07:00
parent 3d05e7f9cd
commit 1452c9c04a
8 changed files with 66 additions and 3 deletions

View file

@ -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