We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0881e3e commit a9c7465Copy full SHA for a9c7465
compiler/rustc_trait_selection/src/solve/normalizes_to/mod.rs
@@ -840,8 +840,8 @@ impl<'tcx> assembly::GoalKind<'tcx> for NormalizesTo<'tcx> {
840
| ty::Tuple(_)
841
| ty::Error(_) => self_ty.async_destructor_ty(ecx.tcx(), goal.param_env),
842
843
- // We do not call `Ty::discriminant_ty` on alias, param, or placeholder
844
- // 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`
845
// (or ICE in the case of placeholders). Projecting a type to itself
846
// is never really productive.
847
ty::Alias(_, _) | ty::Param(_) | ty::Placeholder(..) => {
0 commit comments