@@ -249,7 +249,7 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
249249 }
250250
251251 #[ 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 {
253253 return match search_mod ( self , & self . infcx . tcx . hir ( ) . krate ( ) . module , 0 , names) {
254254 Some ( id) => id,
255255 None => {
@@ -262,7 +262,7 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
262262 m : & hir:: Mod ,
263263 idx : usize ,
264264 names : & [ String ] ,
265- ) -> Option < ast :: NodeId > {
265+ ) -> Option < hir :: HirId > {
266266 assert ! ( idx < names. len( ) ) ;
267267 for item in & m. item_ids {
268268 let item = this. infcx . tcx . hir ( ) . expect_item ( item. id ) ;
@@ -273,9 +273,9 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
273273 return None ;
274274 }
275275
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 > {
277277 if idx == names. len ( ) {
278- return Some ( it. id ) ;
278+ return Some ( it. hir_id ) ;
279279 }
280280
281281 return match it. node {
0 commit comments