Accept arbitrary expressions in key-value attributes at parse time
This commit is contained in:
parent
fa55f668e5
commit
31d72c2658
24 changed files with 145 additions and 210 deletions
|
@ -906,7 +906,6 @@ pub fn walk_mac_args<'a, V: Visitor<'a>>(visitor: &mut V, args: &'a MacArgs) {
|
|||
token::NtExpr(expr) => visitor.visit_expr(expr),
|
||||
t => panic!("unexpected token in key-value attribute: {:?}", t),
|
||||
},
|
||||
token::Literal(..) | token::Ident(..) => {}
|
||||
t => panic!("unexpected token in key-value attribute: {:?}", t),
|
||||
},
|
||||
t => panic!("unexpected token in key-value attribute: {:?}", t),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue