|
8 | 8 | // option. This file may not be copied, modified, or distributed
|
9 | 9 | // except according to those terms.
|
10 | 10 |
|
11 |
| -use ast::{self, Block, Ident, PatKind, Path}; |
| 11 | +use ast::{self, Block, Ident, NodeId, PatKind, Path}; |
12 | 12 | use ast::{MacStmtStyle, StmtKind, ItemKind};
|
13 | 13 | use attr::{self, HasAttrs};
|
14 | 14 | use codemap::{ExpnInfo, NameAndSpan, MacroBang, MacroAttribute};
|
@@ -321,7 +321,7 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
|
321 | 321 | while let Some(expansions) = expansions.pop() {
|
322 | 322 | for (mark, expansion) in expansions.into_iter().rev() {
|
323 | 323 | let derives = derives.remove(&mark).unwrap_or_else(Vec::new);
|
324 |
| - placeholder_expander.add(mark.as_placeholder_id(), expansion, derives); |
| 324 | + placeholder_expander.add(NodeId::placeholder_from_mark(mark), expansion, derives); |
325 | 325 | }
|
326 | 326 | }
|
327 | 327 |
|
@@ -703,7 +703,7 @@ impl<'a, 'b> InvocationCollector<'a, 'b> {
|
703 | 703 | ..self.cx.current_expansion.clone()
|
704 | 704 | },
|
705 | 705 | });
|
706 |
| - placeholder(expansion_kind, mark.as_placeholder_id()) |
| 706 | + placeholder(expansion_kind, NodeId::placeholder_from_mark(mark)) |
707 | 707 | }
|
708 | 708 |
|
709 | 709 | fn collect_bang(&mut self, mac: ast::Mac, span: Span, kind: ExpansionKind) -> Expansion {
|
|
0 commit comments