File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments