parent
f5a64a678f
commit
85b8b447fa
7 changed files with 112 additions and 137 deletions
|
@ -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"),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue