Skip to content

Commit 01702e8

Browse files
committed
use empty_ctxt to simplify downstream
1 parent 3ea70e9 commit 01702e8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/libsyntax/ext/expand.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use ast::{Block, Crate, NodeId, DeclLocal, Expr_, ExprMac, Local, Ident, mac_invoc_tt};
11+
use ast::{Block, Crate, NodeId, DeclLocal, EMPTY_CTXT, Expr_, ExprMac};
12+
use ast::{Local, Ident, mac_invoc_tt};
1213
use ast::{item_mac, Mrk, Stmt_, StmtDecl, StmtMac, StmtExpr, StmtSemi};
1314
use ast::{ILLEGAL_CTXT, SCTable, token_tree};
1415
use ast;
@@ -1306,12 +1307,14 @@ pub fn new_ident_marker(mark: Mrk) ->
13061307

13071308
// perform resolution (in the MTWT sense) on all of the
13081309
// idents in the tree. This is the final step in expansion.
1310+
// FIXME #6993: this function could go away, along with
1311+
// the separate mtwt_resolution pass
13091312
pub fn new_ident_resolver() ->
13101313
@fn(ast::Ident)->ast::Ident {
13111314
|id : ast::Ident|
13121315
ast::Ident {
13131316
name : mtwt_resolve(id),
1314-
ctxt : ILLEGAL_CTXT
1317+
ctxt : EMPTY_CTXT
13151318
}
13161319
}
13171320

0 commit comments

Comments
 (0)