about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaria Sukhonina <dariasukhonina@gmail.com>2024-04-22 15:42:07 +0300
committerDaria Sukhonina <dariasukhonina@gmail.com>2024-04-22 15:42:07 +0300
commita9c7465997973b8d2ca24a5150548a2023cd3823 (patch)
tree332c659d02ccbe053c0b61fe90a855e97c87e987
parent0881e3e531b6fd879107d754f1e807cd591f2d48 (diff)
downloadrust-a9c7465997973b8d2ca24a5150548a2023cd3823.tar.gz
rust-a9c7465997973b8d2ca24a5150548a2023cd3823.zip
Fix copy-paste typo in the comment within consider_builtin_async_destruct_candidate
-rw-r--r--compiler/rustc_trait_selection/src/solve/normalizes_to/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/solve/normalizes_to/mod.rs b/compiler/rustc_trait_selection/src/solve/normalizes_to/mod.rs
index 7dda3411806..c662ab23c53 100644
--- a/compiler/rustc_trait_selection/src/solve/normalizes_to/mod.rs
+++ b/compiler/rustc_trait_selection/src/solve/normalizes_to/mod.rs
@@ -840,8 +840,8 @@ impl<'tcx> assembly::GoalKind<'tcx> for NormalizesTo<'tcx> {
             | ty::Tuple(_)
             | ty::Error(_) => self_ty.async_destructor_ty(ecx.tcx(), goal.param_env),
 
-            // We do not call `Ty::discriminant_ty` on alias, param, or placeholder
-            // types, which return `<self_ty as DiscriminantKind>::Discriminant`
+            // We do not call `Ty::async_destructor_ty` on alias, param, or placeholder
+            // types, which return `<self_ty as AsyncDestruct>::AsyncDestructor`
             // (or ICE in the case of placeholders). Projecting a type to itself
             // is never really productive.
             ty::Alias(_, _) | ty::Param(_) | ty::Placeholder(..) => {