@@ -718,7 +718,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
718
718
// specify type to assert that error was already reported in Err case:
719
719
let predicate: Result < _ , ErrorReported > =
720
720
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) ;
722
722
// okay to ignore Err because of ErrorReported (see above)
723
723
Some ( ( predicate. ok ( ) ?, binding. span ) )
724
724
} ) ) ;
@@ -802,7 +802,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
802
802
803
803
fn ast_type_binding_to_poly_projection_predicate (
804
804
& self ,
805
- ref_id : ast :: NodeId ,
805
+ hir_ref_id : hir :: HirId ,
806
806
trait_ref : ty:: PolyTraitRef < ' tcx > ,
807
807
binding : & ConvertedBinding < ' tcx > ,
808
808
speculative : bool ,
@@ -874,7 +874,6 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
874
874
binding. item_name , binding. span )
875
875
} ?;
876
876
877
- let hir_ref_id = self . tcx ( ) . hir ( ) . node_to_hir_id ( ref_id) ;
878
877
let ( assoc_ident, def_scope) =
879
878
tcx. adjust_ident ( binding. item_name , candidate. def_id ( ) , hir_ref_id) ;
880
879
let assoc_ty = tcx. associated_items ( candidate. def_id ( ) ) . find ( |i| {
0 commit comments