@@ -271,7 +271,7 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
271271 attrs: krate. attrs,
272272 span: krate. span,
273273 node: ast:: ItemKind :: Mod ( krate. module) ,
274- ident: Ident :: with_empty_ctxt ( kw :: Invalid ) ,
274+ ident: Ident :: invalid ( ) ,
275275 id: ast:: DUMMY_NODE_ID ,
276276 vis: respan( krate. span. shrink_to_lo( ) , ast:: VisibilityKind :: Public ) ,
277277 tokens: None ,
@@ -708,7 +708,7 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
708708 } ;
709709 let path = & mac. node . path ;
710710
711- let ident = ident. unwrap_or_else ( || Ident :: with_empty_ctxt ( kw :: Invalid ) ) ;
711+ let ident = ident. unwrap_or_else ( || Ident :: invalid ( ) ) ;
712712 let validate_and_set_expn_info = |this : & mut Self , // arg instead of capture
713713 def_site_span : Option < Span > ,
714714 allow_internal_unstable,
@@ -929,7 +929,7 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
929929 invoc. expansion_data . mark . set_expn_info ( expn_info) ;
930930 let span = span. with_ctxt ( self . cx . backtrace ( ) ) ;
931931 let dummy = ast:: MetaItem { // FIXME(jseyfried) avoid this
932- path : Path :: from_ident ( Ident :: with_empty_ctxt ( kw :: Invalid ) ) ,
932+ path : Path :: from_ident ( Ident :: invalid ( ) ) ,
933933 span : DUMMY_SP ,
934934 node : ast:: MetaItemKind :: Word ,
935935 } ;
@@ -1338,7 +1338,7 @@ impl<'a, 'b> MutVisitor for InvocationCollector<'a, 'b> {
13381338 } )
13391339 }
13401340 ast:: ItemKind :: Mod ( ast:: Mod { inner, .. } ) => {
1341- if item. ident == Ident :: with_empty_ctxt ( kw :: Invalid ) {
1341+ if item. ident == Ident :: invalid ( ) {
13421342 return noop_flat_map_item ( item, self ) ;
13431343 }
13441344
0 commit comments