1
Fork 0

Replace ast::Mac_ enum with struct

Closes #28527.
This commit is contained in:
Andrew Paseltiner 2015-09-20 16:15:37 -04:00
parent f5a64a678f
commit 85b8b447fa
7 changed files with 112 additions and 137 deletions

View file

@ -1090,10 +1090,7 @@ mod tests {
"foo!( fn main() { body } )".to_string(), vec![], &sess);
let tts = match expr.node {
ast::ExprMac(ref mac) => {
let ast::MacInvocTT(_, ref tts, _) = mac.node;
tts.clone()
}
ast::ExprMac(ref mac) => mac.node.tts.clone(),
_ => panic!("not a macro"),
};