@@ -275,7 +275,7 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
275
275
if expansions. len ( ) < depth {
276
276
expansions. push ( Vec :: new ( ) ) ;
277
277
}
278
- expansions[ depth - 1 ] . push ( ( mark. as_u32 ( ) , expansion) ) ;
278
+ expansions[ depth - 1 ] . push ( ( mark, expansion) ) ;
279
279
if !self . cx . ecfg . single_step {
280
280
invocations. extend ( new_invocations. into_iter ( ) . rev ( ) ) ;
281
281
}
@@ -286,7 +286,7 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
286
286
let mut placeholder_expander = PlaceholderExpander :: new ( self . cx , self . monotonic ) ;
287
287
while let Some ( expansions) = expansions. pop ( ) {
288
288
for ( mark, expansion) in expansions. into_iter ( ) . rev ( ) {
289
- placeholder_expander. add ( ast :: NodeId :: from_u32 ( mark) , expansion) ;
289
+ placeholder_expander. add ( mark. as_placeholder_id ( ) , expansion) ;
290
290
}
291
291
}
292
292
@@ -586,7 +586,7 @@ impl<'a, 'b> InvocationCollector<'a, 'b> {
586
586
..self . cx . current_expansion . clone ( )
587
587
} ,
588
588
} ) ;
589
- placeholder ( expansion_kind, ast :: NodeId :: from_u32 ( mark. as_u32 ( ) ) )
589
+ placeholder ( expansion_kind, mark. as_placeholder_id ( ) )
590
590
}
591
591
592
592
fn collect_bang ( & mut self , mac : ast:: Mac , span : Span , kind : ExpansionKind ) -> Expansion {
@@ -748,7 +748,7 @@ impl<'a, 'b> Folder for InvocationCollector<'a, 'b> {
748
748
749
749
item. and_then ( |mut item| match item. node {
750
750
ItemKind :: Mac ( _) if is_macro_def => {
751
- item. id = ast :: NodeId :: from_u32 ( Mark :: fresh ( ) . as_u32 ( ) ) ;
751
+ item. id = Mark :: fresh ( ) . as_placeholder_id ( ) ;
752
752
SmallVector :: one ( P ( item) )
753
753
}
754
754
ItemKind :: Mac ( mac) => {
0 commit comments