rename IfEqBound to IfEq
This commit is contained in:
parent
893b919e64
commit
27e0f7a886
5 changed files with 11 additions and 11 deletions
|
@ -822,8 +822,8 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
|
|||
min: ty::Region<'tcx>,
|
||||
) -> bool {
|
||||
match bound {
|
||||
VerifyBound::IfEqBound(verify_if_eq_b) => {
|
||||
match test_type_match::extract_verify_if_eq_bound(
|
||||
VerifyBound::IfEq(verify_if_eq_b) => {
|
||||
match test_type_match::extract_verify_if_eq(
|
||||
self.tcx(),
|
||||
self.param_env,
|
||||
verify_if_eq_b,
|
||||
|
|
|
@ -35,7 +35,7 @@ use crate::infer::region_constraints::VerifyIfEq;
|
|||
/// very late in inference and hence cannot make use of the normal inference
|
||||
/// machinery.
|
||||
#[tracing::instrument(level = "Debug", skip(tcx, param_env))]
|
||||
pub fn extract_verify_if_eq_bound<'tcx>(
|
||||
pub fn extract_verify_if_eq<'tcx>(
|
||||
tcx: TyCtxt<'tcx>,
|
||||
param_env: ty::ParamEnv<'tcx>,
|
||||
verify_if_eq_b: &ty::Binder<'tcx, VerifyIfEq<'tcx>>,
|
||||
|
|
|
@ -173,7 +173,7 @@ impl<'cx, 'tcx> VerifyBoundCx<'cx, 'tcx> {
|
|||
VerifyBound::OutlivedBy(r)
|
||||
} else {
|
||||
let verify_if_eq_b = binder.map_bound(|ty::OutlivesPredicate(ty, bound)| VerifyIfEq { ty, bound });
|
||||
VerifyBound::IfEqBound(verify_if_eq_b)
|
||||
VerifyBound::IfEq(verify_if_eq_b)
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -228,7 +228,7 @@ pub enum VerifyBound<'tcx> {
|
|||
/// }
|
||||
/// }
|
||||
/// ```
|
||||
IfEqBound(ty::Binder<'tcx, VerifyIfEq<'tcx>>),
|
||||
IfEq(ty::Binder<'tcx, VerifyIfEq<'tcx>>),
|
||||
|
||||
/// Given a region `R`, expands to the function:
|
||||
///
|
||||
|
@ -807,7 +807,7 @@ impl<'tcx> GenericKind<'tcx> {
|
|||
impl<'tcx> VerifyBound<'tcx> {
|
||||
pub fn must_hold(&self) -> bool {
|
||||
match self {
|
||||
VerifyBound::IfEqBound(..) => false,
|
||||
VerifyBound::IfEq(..) => false,
|
||||
VerifyBound::OutlivedBy(re) => re.is_static(),
|
||||
VerifyBound::IsEmpty => false,
|
||||
VerifyBound::AnyBound(bs) => bs.iter().any(|b| b.must_hold()),
|
||||
|
@ -817,7 +817,7 @@ impl<'tcx> VerifyBound<'tcx> {
|
|||
|
||||
pub fn cannot_hold(&self) -> bool {
|
||||
match self {
|
||||
VerifyBound::IfEqBound(..) => false,
|
||||
VerifyBound::IfEq(..) => false,
|
||||
VerifyBound::IsEmpty => false,
|
||||
VerifyBound::OutlivedBy(_) => false,
|
||||
VerifyBound::AnyBound(bs) => bs.iter().all(|b| b.cannot_hold()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue