Skip to content

Commit 3f4a709

Browse files
committed
w
1 parent 7968df1 commit 3f4a709

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_infer/src/infer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ impl<'tcx> InferCtxt<'tcx> {
13091309
debug_assert!(!value.has_placeholders());
13101310
debug_assert!(!param_env.has_infer());
13111311
debug_assert!(!param_env.has_placeholders());
1312-
PseudoCanonicalInput { typing_env: self.typing_env(param_env), value }
1312+
self.typing_env(param_env).as_query_input(value)
13131313
}
13141314

13151315
pub fn try_const_eval_resolve(

compiler/rustc_middle/src/ty/normalize_erasing_regions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ impl<'tcx> NormalizeAfterErasingRegionsFolder<'tcx> {
165165
&self,
166166
arg: ty::GenericArg<'tcx>,
167167
) -> ty::GenericArg<'tcx> {
168-
let arg = PseudoCanonicalInput { typing_env: self.typing_env, value: arg };
168+
let arg = self.typing_env.as_query_input(arg);
169169
self.tcx.try_normalize_generic_arg_after_erasing_regions(arg).unwrap_or_else(|_| bug!(
170170
"Failed to normalize {:?}, maybe try to call `try_normalize_erasing_regions` instead",
171171
arg.value

compiler/rustc_ty_utils/src/instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ fn resolve_associated_item<'tcx>(
103103

104104
let trait_ref = ty::TraitRef::from_method(tcx, trait_id, rcvr_args);
105105

106-
let input = ty::PseudoCanonicalInput { typing_env, value: trait_ref };
106+
let input = typing_env.as_query_input(trait_ref);
107107
let vtbl = match tcx.codegen_select_candidate(input) {
108108
Ok(vtbl) => vtbl,
109109
Err(

0 commit comments

Comments
 (0)