@@ -718,7 +718,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
718718 // specify type to assert that error was already reported in Err case:
719719 let predicate: Result < _ , ErrorReported > =
720720 self . ast_type_binding_to_poly_projection_predicate (
721- trait_ref. ref_id , poly_trait_ref, binding, speculative, & mut dup_bindings) ;
721+ trait_ref. hir_ref_id , poly_trait_ref, binding, speculative, & mut dup_bindings) ;
722722 // okay to ignore Err because of ErrorReported (see above)
723723 Some ( ( predicate. ok ( ) ?, binding. span ) )
724724 } ) ) ;
@@ -802,7 +802,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
802802
803803 fn ast_type_binding_to_poly_projection_predicate (
804804 & self ,
805- ref_id : ast :: NodeId ,
805+ hir_ref_id : hir :: HirId ,
806806 trait_ref : ty:: PolyTraitRef < ' tcx > ,
807807 binding : & ConvertedBinding < ' tcx > ,
808808 speculative : bool ,
@@ -874,7 +874,6 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
874874 binding. item_name , binding. span )
875875 } ?;
876876
877- let hir_ref_id = self . tcx ( ) . hir ( ) . node_to_hir_id ( ref_id) ;
878877 let ( assoc_ident, def_scope) =
879878 tcx. adjust_ident ( binding. item_name , candidate. def_id ( ) , hir_ref_id) ;
880879 let assoc_ty = tcx. associated_items ( candidate. def_id ( ) ) . find ( |i| {
0 commit comments