@@ -12,7 +12,7 @@ use std::cmp::PartialOrd;
1212use std:: hash:: { Hash , Hasher } ;
1313use std:: mem;
1414use std:: rc:: Rc ;
15- use syntax:: ast:: { FloatTy , LitKind , StrStyle , NodeId } ;
15+ use syntax:: ast:: { FloatTy , LitKind , StrStyle } ;
1616use syntax:: ptr:: P ;
1717
1818#[ derive( Debug , Copy , Clone ) ]
@@ -249,7 +249,7 @@ impl<'c, 'cc> ConstEvalLateContext<'c, 'cc> {
249249 /// simple constant folding: Insert an expression, get a constant or none.
250250 fn expr ( & mut self , e : & Expr ) -> Option < Constant > {
251251 match e. node {
252- ExprPath ( ref qpath) => self . fetch_path ( qpath, e. id ) ,
252+ ExprPath ( ref qpath) => self . fetch_path ( qpath, e. hir_id ) ,
253253 ExprBlock ( ref block) => self . block ( block) ,
254254 ExprIf ( ref cond, ref then, ref otherwise) => self . ifthenelse ( cond, then, otherwise) ,
255255 ExprLit ( ref lit) => Some ( lit_to_constant ( & lit. node , self . tcx , self . tables . expr_ty ( e) ) ) ,
@@ -284,7 +284,7 @@ impl<'c, 'cc> ConstEvalLateContext<'c, 'cc> {
284284 }
285285
286286 /// lookup a possibly constant expression from a ExprPath
287- fn fetch_path ( & mut self , qpath : & QPath , id : NodeId ) -> Option < Constant > {
287+ fn fetch_path ( & mut self , qpath : & QPath , id : HirId ) -> Option < Constant > {
288288 let def = self . tables . qpath_def ( qpath, id) ;
289289 match def {
290290 Def :: Const ( def_id) |
0 commit comments