Fix copy-paste typo in the comment within consider_builtin_async_destruct_candidate

This commit is contained in:
Daria Sukhonina 2024-04-22 15:42:07 +03:00
parent 0881e3e531
commit a9c7465997

View file

@ -840,8 +840,8 @@ fn consider_builtin_async_destruct_candidate(
| 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(..) => {