diff options
| author | Michael Goulet <michael@errs.io> | 2025-05-24 17:41:09 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-05-27 11:14:47 +0000 |
| commit | 5f3ae06db07adcd6885558aa1f33ec2711fe0651 (patch) | |
| tree | 40194179912bb16b3b4ae0b7f6f0e77aa1cfc2d8 /compiler/rustc_next_trait_solver/src | |
| parent | 29c3babd7c03a48b022663beb7ad39bb24bbef36 (diff) | |
Fix some var names
Diffstat (limited to 'compiler/rustc_next_trait_solver/src')
| -rw-r--r-- | compiler/rustc_next_trait_solver/src/solve/eval_ctxt/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_next_trait_solver/src/solve/eval_ctxt/mod.rs b/compiler/rustc_next_trait_solver/src/solve/eval_ctxt/mod.rs index e696da9c2b7..2924208173d 100644 --- a/compiler/rustc_next_trait_solver/src/solve/eval_ctxt/mod.rs +++ b/compiler/rustc_next_trait_solver/src/solve/eval_ctxt/mod.rs @@ -817,8 +817,8 @@ where /// Returns a ty infer or a const infer depending on whether `kind` is a `Ty` or `Const`. /// If `kind` is an integer inference variable this will still return a ty infer var. - pub(super) fn next_term_infer_of_kind(&mut self, kind: I::Term) -> I::Term { - match kind.kind() { + pub(super) fn next_term_infer_of_kind(&mut self, term: I::Term) -> I::Term { + match term.kind() { ty::TermKind::Ty(_) => self.next_ty_infer().into(), ty::TermKind::Const(_) => self.next_const_infer().into(), } |
