Skip to content

Commit 27e0f7a

Browse files
committed
rename IfEqBound to IfEq
1 parent 893b919 commit 27e0f7a

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

compiler/rustc_borrowck/src/region_infer/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,8 +1191,8 @@ impl<'tcx> RegionInferenceContext<'tcx> {
11911191
debug!("eval_verify_bound(lower_bound={:?}, verify_bound={:?})", lower_bound, verify_bound);
11921192

11931193
match verify_bound {
1194-
VerifyBound::IfEqBound(verify_if_eq_b) => {
1195-
self.eval_if_eq_bound(infcx, param_env, generic_ty, lower_bound, *verify_if_eq_b)
1194+
VerifyBound::IfEq(verify_if_eq_b) => {
1195+
self.eval_if_eq(infcx, param_env, generic_ty, lower_bound, *verify_if_eq_b)
11961196
}
11971197

11981198
VerifyBound::IsEmpty => {
@@ -1229,7 +1229,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
12291229
}
12301230
}
12311231

1232-
fn eval_if_eq_bound(
1232+
fn eval_if_eq(
12331233
&self,
12341234
infcx: &InferCtxt<'_, 'tcx>,
12351235
param_env: ty::ParamEnv<'tcx>,
@@ -1239,7 +1239,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
12391239
) -> bool {
12401240
let generic_ty = self.normalize_to_scc_representatives(infcx.tcx, generic_ty);
12411241
let verify_if_eq_b = self.normalize_to_scc_representatives(infcx.tcx, verify_if_eq_b);
1242-
match test_type_match::extract_verify_if_eq_bound(
1242+
match test_type_match::extract_verify_if_eq(
12431243
infcx.tcx,
12441244
param_env,
12451245
&verify_if_eq_b,

compiler/rustc_infer/src/infer/lexical_region_resolve/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,8 +822,8 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
822822
min: ty::Region<'tcx>,
823823
) -> bool {
824824
match bound {
825-
VerifyBound::IfEqBound(verify_if_eq_b) => {
826-
match test_type_match::extract_verify_if_eq_bound(
825+
VerifyBound::IfEq(verify_if_eq_b) => {
826+
match test_type_match::extract_verify_if_eq(
827827
self.tcx(),
828828
self.param_env,
829829
verify_if_eq_b,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use crate::infer::region_constraints::VerifyIfEq;
3535
/// very late in inference and hence cannot make use of the normal inference
3636
/// machinery.
3737
#[tracing::instrument(level = "Debug", skip(tcx, param_env))]
38-
pub fn extract_verify_if_eq_bound<'tcx>(
38+
pub fn extract_verify_if_eq<'tcx>(
3939
tcx: TyCtxt<'tcx>,
4040
param_env: ty::ParamEnv<'tcx>,
4141
verify_if_eq_b: &ty::Binder<'tcx, VerifyIfEq<'tcx>>,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ impl<'cx, 'tcx> VerifyBoundCx<'cx, 'tcx> {
173173
VerifyBound::OutlivedBy(r)
174174
} else {
175175
let verify_if_eq_b = binder.map_bound(|ty::OutlivesPredicate(ty, bound)| VerifyIfEq { ty, bound });
176-
VerifyBound::IfEqBound(verify_if_eq_b)
176+
VerifyBound::IfEq(verify_if_eq_b)
177177
}
178178
});
179179

compiler/rustc_infer/src/infer/region_constraints/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ pub enum VerifyBound<'tcx> {
228228
/// }
229229
/// }
230230
/// ```
231-
IfEqBound(ty::Binder<'tcx, VerifyIfEq<'tcx>>),
231+
IfEq(ty::Binder<'tcx, VerifyIfEq<'tcx>>),
232232

233233
/// Given a region `R`, expands to the function:
234234
///
@@ -807,7 +807,7 @@ impl<'tcx> GenericKind<'tcx> {
807807
impl<'tcx> VerifyBound<'tcx> {
808808
pub fn must_hold(&self) -> bool {
809809
match self {
810-
VerifyBound::IfEqBound(..) => false,
810+
VerifyBound::IfEq(..) => false,
811811
VerifyBound::OutlivedBy(re) => re.is_static(),
812812
VerifyBound::IsEmpty => false,
813813
VerifyBound::AnyBound(bs) => bs.iter().any(|b| b.must_hold()),
@@ -817,7 +817,7 @@ impl<'tcx> VerifyBound<'tcx> {
817817

818818
pub fn cannot_hold(&self) -> bool {
819819
match self {
820-
VerifyBound::IfEqBound(..) => false,
820+
VerifyBound::IfEq(..) => false,
821821
VerifyBound::IsEmpty => false,
822822
VerifyBound::OutlivedBy(_) => false,
823823
VerifyBound::AnyBound(bs) => bs.iter().all(|b| b.cannot_hold()),

0 commit comments

Comments
 (0)