diff options
| author | lcnr <rust@lcnr.de> | 2025-08-27 09:42:09 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2025-09-08 14:17:56 +0200 |
| commit | f51458640840cb94c32f1e55431b1c855ca22e88 (patch) | |
| tree | 96f0a77ec3555f183d2f49eb4689a9751d1332bc /compiler/rustc_trait_selection | |
| parent | 28a0e77d1318210540fa1a561b9a8af08e2ffe40 (diff) | |
| download | rust-f51458640840cb94c32f1e55431b1c855ca22e88.tar.gz rust-f51458640840cb94c32f1e55431b1c855ca22e88.zip | |
optimize `CanonicalVarValues::instantiate`
Diffstat (limited to 'compiler/rustc_trait_selection')
| -rw-r--r-- | compiler/rustc_trait_selection/src/infer.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/infer.rs b/compiler/rustc_trait_selection/src/infer.rs index 7c6b7b14ecb..4c50c44b841 100644 --- a/compiler/rustc_trait_selection/src/infer.rs +++ b/compiler/rustc_trait_selection/src/infer.rs @@ -184,10 +184,9 @@ impl<'tcx> InferCtxtBuilder<'tcx> { R: Debug + TypeFoldable<TyCtxt<'tcx>>, Canonical<'tcx, QueryResponse<'tcx, R>>: ArenaAllocatable<'tcx>, { - let (infcx, key, canonical_inference_vars) = - self.build_with_canonical(DUMMY_SP, canonical_key); + let (infcx, key, var_values) = self.build_with_canonical(DUMMY_SP, canonical_key); let ocx = ObligationCtxt::new(&infcx); let value = operation(&ocx, key)?; - ocx.make_canonicalized_query_response(canonical_inference_vars, value) + ocx.make_canonicalized_query_response(var_values, value) } } |
