File tree 3 files changed +4
-4
lines changed
compiler/rustc_infer/src/infer
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> {
689
689
/// Require that the region `r` be equal to one of the regions in
690
690
/// the set `regions`.
691
691
#[ instrument( skip( self ) , level = "debug" ) ]
692
- pub fn member_constraint (
692
+ pub fn add_member_constraint (
693
693
& self ,
694
694
key : ty:: OpaqueTypeKey < ' tcx > ,
695
695
definition_span : Span ,
696
696
hidden_ty : Ty < ' tcx > ,
697
697
region : ty:: Region < ' tcx > ,
698
698
in_regions : Lrc < Vec < ty:: Region < ' tcx > > > ,
699
699
) {
700
- self . inner . borrow_mut ( ) . unwrap_region_constraints ( ) . member_constraint (
700
+ self . inner . borrow_mut ( ) . unwrap_region_constraints ( ) . add_member_constraint (
701
701
key,
702
702
definition_span,
703
703
hidden_ty,
Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ impl<'tcx> InferCtxt<'tcx> {
364
364
concrete_ty. visit_with ( & mut ConstrainOpaqueTypeRegionVisitor {
365
365
tcx : self . tcx ,
366
366
op : |r| {
367
- self . member_constraint (
367
+ self . add_member_constraint (
368
368
opaque_type_key,
369
369
span,
370
370
concrete_ty,
Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ impl<'tcx> RegionConstraintCollector<'_, 'tcx> {
466
466
}
467
467
}
468
468
469
- pub ( super ) fn member_constraint (
469
+ pub ( super ) fn add_member_constraint (
470
470
& mut self ,
471
471
key : ty:: OpaqueTypeKey < ' tcx > ,
472
472
definition_span : Span ,
You can’t perform that action at this time.
0 commit comments