rename from "in constraint" to "pick constraint"
This commit is contained in:
parent
c36205b48e
commit
02609b85e3
5 changed files with 44 additions and 39 deletions
|
@ -907,7 +907,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
|
|||
|
||||
/// Require that the region `r` be equal to one of the regions in
|
||||
/// the set `regions`.
|
||||
pub fn in_constraint(
|
||||
pub fn pick_constraint(
|
||||
&self,
|
||||
origin: SubregionOrigin<'tcx>,
|
||||
region: ty::Region<'tcx>,
|
||||
|
@ -915,7 +915,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
|
|||
) {
|
||||
debug!("sub_regions({:?} <: {:?})", region, in_regions);
|
||||
self.borrow_region_constraints()
|
||||
.in_constraint(origin, region, in_regions);
|
||||
.pick_constraint(origin, region, in_regions);
|
||||
}
|
||||
|
||||
pub fn subtype_predicate(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue