@@ -249,7 +249,7 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
249
249
}
250
250
251
251
#[ allow( dead_code) ] // this seems like it could be useful, even if we don't use it now
252
- pub fn lookup_item ( & self , names : & [ String ] ) -> ast :: NodeId {
252
+ pub fn lookup_item ( & self , names : & [ String ] ) -> hir :: HirId {
253
253
return match search_mod ( self , & self . infcx . tcx . hir ( ) . krate ( ) . module , 0 , names) {
254
254
Some ( id) => id,
255
255
None => {
@@ -262,7 +262,7 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
262
262
m : & hir:: Mod ,
263
263
idx : usize ,
264
264
names : & [ String ] ,
265
- ) -> Option < ast :: NodeId > {
265
+ ) -> Option < hir :: HirId > {
266
266
assert ! ( idx < names. len( ) ) ;
267
267
for item in & m. item_ids {
268
268
let item = this. infcx . tcx . hir ( ) . expect_item ( item. id ) ;
@@ -273,9 +273,9 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
273
273
return None ;
274
274
}
275
275
276
- fn search ( this : & Env , it : & hir:: Item , idx : usize , names : & [ String ] ) -> Option < ast :: NodeId > {
276
+ fn search ( this : & Env , it : & hir:: Item , idx : usize , names : & [ String ] ) -> Option < hir :: HirId > {
277
277
if idx == names. len ( ) {
278
- return Some ( it. id ) ;
278
+ return Some ( it. hir_id ) ;
279
279
}
280
280
281
281
return match it. node {
0 commit comments