mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 00:24:52 +00:00
Fix copy-paste typo in the comment within consider_builtin_async_destruct_candidate
This commit is contained in:
parent
0881e3e531
commit
a9c7465997
|
@ -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(..) => {
|
||||
|
|
Loading…
Reference in a new issue