Add AST node for pattern macros
This commit is contained in:
parent
28a4ee5eeb
commit
5fdd0e4b05
12 changed files with 36 additions and 2 deletions
|
@ -142,6 +142,10 @@ impl<'a> CFGBuilder<'a> {
|
|||
self.pats_all(post.iter().map(|p| *p), vec_exit);
|
||||
self.add_node(pat.id, [post_exit])
|
||||
}
|
||||
|
||||
ast::PatMac(_) => {
|
||||
self.tcx.sess.span_bug(pat.span, "unexpanded macro");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue