fn member_constraint
to add_member_constraint
This commit is contained in:
parent
e6349b414e
commit
c76eb22356
3 changed files with 4 additions and 4 deletions
|
@ -689,7 +689,7 @@ impl<'tcx> InferCtxt<'tcx> {
|
|||
/// Require that the region `r` be equal to one of the regions in
|
||||
/// the set `regions`.
|
||||
#[instrument(skip(self), level = "debug")]
|
||||
pub fn member_constraint(
|
||||
pub fn add_member_constraint(
|
||||
&self,
|
||||
key: ty::OpaqueTypeKey<'tcx>,
|
||||
definition_span: Span,
|
||||
|
@ -697,7 +697,7 @@ impl<'tcx> InferCtxt<'tcx> {
|
|||
region: ty::Region<'tcx>,
|
||||
in_regions: Lrc<Vec<ty::Region<'tcx>>>,
|
||||
) {
|
||||
self.inner.borrow_mut().unwrap_region_constraints().member_constraint(
|
||||
self.inner.borrow_mut().unwrap_region_constraints().add_member_constraint(
|
||||
key,
|
||||
definition_span,
|
||||
hidden_ty,
|
||||
|
|
|
@ -364,7 +364,7 @@ impl<'tcx> InferCtxt<'tcx> {
|
|||
concrete_ty.visit_with(&mut ConstrainOpaqueTypeRegionVisitor {
|
||||
tcx: self.tcx,
|
||||
op: |r| {
|
||||
self.member_constraint(
|
||||
self.add_member_constraint(
|
||||
opaque_type_key,
|
||||
span,
|
||||
concrete_ty,
|
||||
|
|
|
@ -466,7 +466,7 @@ impl<'tcx> RegionConstraintCollector<'_, 'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
pub(super) fn member_constraint(
|
||||
pub(super) fn add_member_constraint(
|
||||
&mut self,
|
||||
key: ty::OpaqueTypeKey<'tcx>,
|
||||
definition_span: Span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue