Skip to content

Commit f12e772

Browse files
Rename At::normalize to At::query_normalize
1 parent 8a09420 commit f12e772

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1933,7 +1933,7 @@ impl<'tcx> InferCtxtPrivExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
19331933
let infcx = self.tcx.infer_ctxt().build();
19341934
infcx
19351935
.at(&ObligationCause::dummy(), ty::ParamEnv::empty())
1936-
.normalize(candidate)
1936+
.query_normalize(candidate)
19371937
.map_or(candidate, |normalized| normalized.value)
19381938
};
19391939

compiler/rustc_trait_selection/src/traits/query/normalize.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use super::NoSolution;
2323
pub use rustc_middle::traits::query::NormalizationResult;
2424

2525
pub trait AtExt<'tcx> {
26-
fn normalize<T>(&self, value: T) -> Result<Normalized<'tcx, T>, NoSolution>
26+
fn query_normalize<T>(&self, value: T) -> Result<Normalized<'tcx, T>, NoSolution>
2727
where
2828
T: TypeFoldable<'tcx>;
2929
}
@@ -42,7 +42,7 @@ impl<'cx, 'tcx> AtExt<'tcx> for At<'cx, 'tcx> {
4242
/// normalizing, but for now should be used only when we actually
4343
/// know that normalization will succeed, since error reporting
4444
/// and other details are still "under development".
45-
fn normalize<T>(&self, value: T) -> Result<Normalized<'tcx, T>, NoSolution>
45+
fn query_normalize<T>(&self, value: T) -> Result<Normalized<'tcx, T>, NoSolution>
4646
where
4747
T: TypeFoldable<'tcx>,
4848
{

compiler/rustc_traits/src/dropck_outlives.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ fn dropck_outlives<'tcx>(
100100
// to push them onto the stack to be expanded.
101101
for ty in constraints.dtorck_types.drain(..) {
102102
let Normalized { value: ty, obligations } =
103-
ocx.infcx.at(&cause, param_env).normalize(ty)?;
103+
ocx.infcx.at(&cause, param_env).query_normalize(ty)?;
104104
ocx.register_obligations(obligations);
105105

106106
debug!("dropck_outlives: ty from dtorck_types = {:?}", ty);

compiler/rustc_traits/src/normalize_erasing_regions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn try_normalize_after_erasing_regions<'tcx, T: TypeFoldable<'tcx> + PartialEq +
2929
let ParamEnvAnd { param_env, value } = goal;
3030
let infcx = tcx.infer_ctxt().build();
3131
let cause = ObligationCause::dummy();
32-
match infcx.at(&cause, param_env).normalize(value) {
32+
match infcx.at(&cause, param_env).query_normalize(value) {
3333
Ok(Normalized { value: normalized_value, obligations: normalized_obligations }) => {
3434
// We don't care about the `obligations`; they are
3535
// always only region relations, and we are about to

compiler/rustc_traits/src/type_op.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ where
137137
{
138138
let (param_env, Normalize { value }) = key.into_parts();
139139
let Normalized { value, obligations } =
140-
ocx.infcx.at(&ObligationCause::dummy(), param_env).normalize(value)?;
140+
ocx.infcx.at(&ObligationCause::dummy(), param_env).query_normalize(value)?;
141141
ocx.register_obligations(obligations);
142142
Ok(value)
143143
}

src/librustdoc/clean/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ fn normalize<'tcx>(cx: &mut DocContext<'tcx>, ty: Ty<'tcx>) -> Option<Ty<'tcx>>
15881588
let infcx = cx.tcx.infer_ctxt().build();
15891589
let normalized = infcx
15901590
.at(&ObligationCause::dummy(), cx.param_env)
1591-
.normalize(ty)
1591+
.query_normalize(ty)
15921592
.map(|resolved| infcx.resolve_vars_if_possible(resolved.value));
15931593
match normalized {
15941594
Ok(normalized_value) => {

0 commit comments

Comments
 (0)