diff --git a/compiler/rustc_middle/src/ty/util.rs b/compiler/rustc_middle/src/ty/util.rs index 2d83b9f8ef193..542014dcce7e1 100644 --- a/compiler/rustc_middle/src/ty/util.rs +++ b/compiler/rustc_middle/src/ty/util.rs @@ -1328,7 +1328,7 @@ impl<'tcx> Ty<'tcx> { ) } - /// Checks whether values of this type `T` implements the `AsyncDrop` + /// Checks whether values of this type `T` implements the `Drop` /// trait. pub fn has_surface_drop(self, tcx: TyCtxt<'tcx>, param_env: ty::ParamEnv<'tcx>) -> bool { self.could_have_surface_drop() && tcx.has_surface_drop_raw(param_env.and(self))