Skip to content

Commit a9c7465

Browse files
committed
Fix copy-paste typo in the comment within consider_builtin_async_destruct_candidate
1 parent 0881e3e commit a9c7465

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_trait_selection/src/solve/normalizes_to

1 file changed

+2
-2
lines changed

compiler/rustc_trait_selection/src/solve/normalizes_to/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -840,8 +840,8 @@ impl<'tcx> assembly::GoalKind<'tcx> for NormalizesTo<'tcx> {
840840
| ty::Tuple(_)
841841
| ty::Error(_) => self_ty.async_destructor_ty(ecx.tcx(), goal.param_env),
842842

843-
// We do not call `Ty::discriminant_ty` on alias, param, or placeholder
844-
// types, which return `<self_ty as DiscriminantKind>::Discriminant`
843+
// We do not call `Ty::async_destructor_ty` on alias, param, or placeholder
844+
// types, which return `<self_ty as AsyncDestruct>::AsyncDestructor`
845845
// (or ICE in the case of placeholders). Projecting a type to itself
846846
// is never really productive.
847847
ty::Alias(_, _) | ty::Param(_) | ty::Placeholder(..) => {

0 commit comments

Comments
 (0)