@@ -304,7 +304,7 @@ fn make_mirror_unadjusted<'a, 'gcx, 'tcx>(cx: &mut Cx<'a, 'gcx, 'tcx>,
304
304
}
305
305
} else {
306
306
ExprKind :: Call {
307
- ty : cx. tables ( ) . node_id_to_type ( fun. hir_id ) ,
307
+ ty : cx. tables ( ) . node_type ( fun. hir_id ) ,
308
308
fun : fun. to_ref ( ) ,
309
309
args : args. to_ref ( ) ,
310
310
from_hir_call : true ,
@@ -677,7 +677,7 @@ fn make_mirror_unadjusted<'a, 'gcx, 'tcx>(cx: &mut Cx<'a, 'gcx, 'tcx>,
677
677
let def = cx. tables ( ) . qpath_def ( qpath, source. hir_id ) ;
678
678
cx
679
679
. tables ( )
680
- . node_id_to_type ( source. hir_id )
680
+ . node_type ( source. hir_id )
681
681
. ty_adt_def ( )
682
682
. and_then ( |adt_def| {
683
683
match def {
@@ -919,7 +919,7 @@ fn convert_path_expr<'a, 'gcx, 'tcx>(cx: &mut Cx<'a, 'gcx, 'tcx>,
919
919
debug ! ( "convert_path_expr: user_ty={:?}" , user_ty) ;
920
920
ExprKind :: Literal {
921
921
literal : cx. tcx . mk_lazy_const ( ty:: LazyConst :: Evaluated ( ty:: Const :: zero_sized (
922
- cx. tables ( ) . node_id_to_type ( expr. hir_id ) ,
922
+ cx. tables ( ) . node_type ( expr. hir_id ) ,
923
923
) ) ) ,
924
924
user_ty,
925
925
}
@@ -940,7 +940,7 @@ fn convert_path_expr<'a, 'gcx, 'tcx>(cx: &mut Cx<'a, 'gcx, 'tcx>,
940
940
let user_provided_types = cx. tables . user_provided_types ( ) ;
941
941
let user_provided_type = user_provided_types. get ( expr. hir_id ) . map ( |u_ty| * u_ty) ;
942
942
debug ! ( "convert_path_expr: user_provided_type={:?}" , user_provided_type) ;
943
- match cx. tables ( ) . node_id_to_type ( expr. hir_id ) . sty {
943
+ match cx. tables ( ) . node_type ( expr. hir_id ) . sty {
944
944
// A unit struct/variant which is used as a value.
945
945
// We return a completely different ExprKind here to account for this special case.
946
946
ty:: Adt ( adt_def, substs) => {
@@ -980,11 +980,11 @@ fn convert_var<'a, 'gcx, 'tcx>(cx: &mut Cx<'a, 'gcx, 'tcx>,
980
980
index,
981
981
closure_expr_id) ;
982
982
let var_hir_id = cx. tcx . hir ( ) . node_to_hir_id ( var_id) ;
983
- let var_ty = cx. tables ( ) . node_id_to_type ( var_hir_id) ;
983
+ let var_ty = cx. tables ( ) . node_type ( var_hir_id) ;
984
984
985
985
// FIXME free regions in closures are not right
986
986
let closure_ty = cx. tables ( )
987
- . node_id_to_type ( cx. tcx . hir ( ) . node_to_hir_id ( closure_expr_id) ) ;
987
+ . node_type ( cx. tcx . hir ( ) . node_to_hir_id ( closure_expr_id) ) ;
988
988
989
989
// FIXME we're just hard-coding the idea that the
990
990
// signature will be &self or &mut self and hence will
@@ -1188,7 +1188,7 @@ fn capture_freevar<'a, 'gcx, 'tcx>(cx: &mut Cx<'a, 'gcx, 'tcx>,
1188
1188
} ;
1189
1189
let upvar_capture = cx. tables ( ) . upvar_capture ( upvar_id) ;
1190
1190
let temp_lifetime = cx. region_scope_tree . temporary_scope ( closure_expr. hir_id . local_id ) ;
1191
- let var_ty = cx. tables ( ) . node_id_to_type ( var_hir_id) ;
1191
+ let var_ty = cx. tables ( ) . node_type ( var_hir_id) ;
1192
1192
let captured_var = Expr {
1193
1193
temp_lifetime,
1194
1194
ty : var_ty,
0 commit comments