diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-13 14:34:47 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-05-13 16:55:58 -0400 |
| commit | fa84018c2ef0aa35e46f11dce87f3e0410fae9a4 (patch) | |
| tree | 82805a73ac639eb16f335902db412ce92d041dac /compiler/rustc_trait_selection/src/traits/project.rs | |
| parent | 3bcdf3058ef3eaef5042661cf8301acfbcddce65 (diff) | |
| download | rust-fa84018c2ef0aa35e46f11dce87f3e0410fae9a4.tar.gz rust-fa84018c2ef0aa35e46f11dce87f3e0410fae9a4.zip | |
Apply nits
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/project.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/project.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/project.rs b/compiler/rustc_trait_selection/src/traits/project.rs index 20b5a81bb0e..f2daefaf045 100644 --- a/compiler/rustc_trait_selection/src/traits/project.rs +++ b/compiler/rustc_trait_selection/src/traits/project.rs @@ -232,7 +232,7 @@ pub(super) fn poly_project_and_unify_term<'cx, 'tcx>( /// ``` /// If successful, this may result in additional obligations. /// -/// See [poly_project_and_unify_type] for an explanation of the return value. +/// See [poly_project_and_unify_term] for an explanation of the return value. #[instrument(level = "debug", skip(selcx))] fn project_and_unify_term<'cx, 'tcx>( selcx: &mut SelectionContext<'cx, 'tcx>, @@ -395,7 +395,7 @@ pub(super) fn opt_normalize_projection_term<'a, 'b, 'tcx>( debug!("recur cache"); return Err(InProgress); } - Err(ProjectionCacheEntry::NormalizedTy { ty, complete: _ }) => { + Err(ProjectionCacheEntry::NormalizedTerm { ty, complete: _ }) => { // This is the hottest path in this function. // // If we find the value in the cache, then return it along @@ -522,7 +522,7 @@ fn normalize_to_error<'a, 'tcx>( | ty::AliasTermKind::InherentTy | ty::AliasTermKind::OpaqueTy | ty::AliasTermKind::WeakTy => selcx.infcx.next_ty_var(cause.span).into(), - ty::AliasTermKind::UnevaluatedConst => selcx + ty::AliasTermKind::UnevaluatedConst | ty::AliasTermKind::ProjectionConst => selcx .infcx .next_const_var( selcx |
