From 67980dd6fb11917d23d01a19c2cf4cfc3978aac8 Mon Sep 17 00:00:00 2001 From: Daria Sukhonina Date: Mon, 22 Apr 2024 15:44:01 +0300 Subject: [PATCH] Fix typo in the has_surface_drop's doc comment Co-authored-by: Oli Scherer --- compiler/rustc_middle/src/ty/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))