Skip to content

Commit 4eefc31

Browse files
committed
distinguish from the concept of item bounds
1 parent abc4f47 commit 4eefc31

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

compiler/rustc_infer/src/infer/outlives/obligations.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ impl<'cx, 'tcx> VerifyBoundCx<'cx, 'tcx> {
250250
}
251251

252252
#[instrument(level = "debug", skip(self))]
253-
pub(crate) fn alias_bound(&self, alias_ty: ty::AliasTy<'tcx>) -> VerifyBound<'tcx> {
253+
pub(crate) fn alias_ty_bound(&self, alias_ty: ty::AliasTy<'tcx>) -> VerifyBound<'tcx> {
254254
// Search the env for where clauses like `P: 'a`.
255255
let env_bounds = self.approx_declared_bounds_from_env(alias_ty).into_iter().map(|binder| {
256256
if let Some(ty::OutlivesPredicate(ty, r)) = binder.no_bound_vars()
@@ -307,7 +307,7 @@ impl<'cx, 'tcx> VerifyBoundCx<'cx, 'tcx> {
307307
Component::Placeholder(placeholder_ty) => {
308308
self.param_or_placeholder_bound(Ty::new_placeholder(self.tcx, placeholder_ty))
309309
}
310-
Component::Alias(alias_ty) => self.alias_bound(alias_ty),
310+
Component::Alias(alias_ty) => self.alias_ty_bound(alias_ty),
311311
Component::EscapingAlias(ref components) => self.bound_from_components(components),
312312
Component::UnresolvedInferenceVariable(v) => {
313313
// Ignore this, we presume it will yield an error later, since
@@ -693,7 +693,7 @@ impl<'tcx, D: OutlivesHandlingDelegate<'tcx>> TypeOutlivesOpCtxt<'_, 'tcx, D> {
693693
// projection outlive; in some cases, this may add insufficient
694694
// edges into the inference graph, leading to inference failures
695695
// even though a satisfactory solution exists.
696-
let verify_bound = self.verify_bound_cx.alias_bound(alias_ty);
696+
let verify_bound = self.verify_bound_cx.alias_ty_bound(alias_ty);
697697
debug!("alias_must_outlive: pushing {:?}", verify_bound);
698698
self.delegate.push_verify(origin, GenericKind::Alias(alias_ty), region, verify_bound);
699699
}

0 commit comments

Comments
 (0)