We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9c7465 commit 67980ddCopy full SHA for 67980dd
compiler/rustc_middle/src/ty/util.rs
@@ -1328,7 +1328,7 @@ impl<'tcx> Ty<'tcx> {
1328
)
1329
}
1330
1331
- /// Checks whether values of this type `T` implements the `AsyncDrop`
+ /// Checks whether values of this type `T` implements the `Drop`
1332
/// trait.
1333
pub fn has_surface_drop(self, tcx: TyCtxt<'tcx>, param_env: ty::ParamEnv<'tcx>) -> bool {
1334
self.could_have_surface_drop() && tcx.has_surface_drop_raw(param_env.and(self))
0 commit comments