File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
compiler/rustc_infer/src/infer Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -689,15 +689,15 @@ impl<'tcx> InferCtxt<'tcx> {
689689 /// Require that the region `r` be equal to one of the regions in
690690 /// the set `regions`.
691691 #[ instrument( skip( self ) , level = "debug" ) ]
692- pub fn member_constraint (
692+ pub fn add_member_constraint (
693693 & self ,
694694 key : ty:: OpaqueTypeKey < ' tcx > ,
695695 definition_span : Span ,
696696 hidden_ty : Ty < ' tcx > ,
697697 region : ty:: Region < ' tcx > ,
698698 in_regions : Lrc < Vec < ty:: Region < ' tcx > > > ,
699699 ) {
700- self . inner . borrow_mut ( ) . unwrap_region_constraints ( ) . member_constraint (
700+ self . inner . borrow_mut ( ) . unwrap_region_constraints ( ) . add_member_constraint (
701701 key,
702702 definition_span,
703703 hidden_ty,
Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ impl<'tcx> InferCtxt<'tcx> {
364364 concrete_ty. visit_with ( & mut ConstrainOpaqueTypeRegionVisitor {
365365 tcx : self . tcx ,
366366 op : |r| {
367- self . member_constraint (
367+ self . add_member_constraint (
368368 opaque_type_key,
369369 span,
370370 concrete_ty,
Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ impl<'tcx> RegionConstraintCollector<'_, 'tcx> {
466466 }
467467 }
468468
469- pub ( super ) fn member_constraint (
469+ pub ( super ) fn add_member_constraint (
470470 & mut self ,
471471 key : ty:: OpaqueTypeKey < ' tcx > ,
472472 definition_span : Span ,
You can’t perform that action at this time.
0 commit comments