about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src/common_traits.rs
diff options
context:
space:
mode:
authorDaria Sukhonina <dariasukhonina@gmail.com>2024-05-02 17:59:02 +0300
committerDaria Sukhonina <dariasukhonina@gmail.com>2024-05-29 12:50:44 +0300
commita47173c4f77b5e7c960ffe178eba2bc00bb91e31 (patch)
tree989af6a6533239303e9e055a2b0219f2b050be62 /compiler/rustc_ty_utils/src/common_traits.rs
parente0904cd6a96e76f89112ea83b45e4c507e3e31df (diff)
Start implementing needs_async_drop and related
Diffstat (limited to 'compiler/rustc_ty_utils/src/common_traits.rs')
-rw-r--r--compiler/rustc_ty_utils/src/common_traits.rs21
1 files changed, 1 insertions, 20 deletions
diff --git a/compiler/rustc_ty_utils/src/common_traits.rs b/compiler/rustc_ty_utils/src/common_traits.rs
index cb95239e991..51b908881eb 100644
--- a/compiler/rustc_ty_utils/src/common_traits.rs
+++ b/compiler/rustc_ty_utils/src/common_traits.rs
@@ -22,17 +22,6 @@ fn is_unpin_raw<'tcx>(tcx: TyCtxt<'tcx>, query: ty::ParamEnvAnd<'tcx, Ty<'tcx>>)
     is_item_raw(tcx, query, LangItem::Unpin)
 }
 
-fn has_surface_async_drop_raw<'tcx>(
-    tcx: TyCtxt<'tcx>,
-    query: ty::ParamEnvAnd<'tcx, Ty<'tcx>>,
-) -> bool {
-    is_item_raw(tcx, query, LangItem::AsyncDrop)
-}
-
-fn has_surface_drop_raw<'tcx>(tcx: TyCtxt<'tcx>, query: ty::ParamEnvAnd<'tcx, Ty<'tcx>>) -> bool {
-    is_item_raw(tcx, query, LangItem::Drop)
-}
-
 fn is_item_raw<'tcx>(
     tcx: TyCtxt<'tcx>,
     query: ty::ParamEnvAnd<'tcx, Ty<'tcx>>,
@@ -45,13 +34,5 @@ fn is_item_raw<'tcx>(
 }
 
 pub(crate) fn provide(providers: &mut Providers) {
-    *providers = Providers {
-        is_copy_raw,
-        is_sized_raw,
-        is_freeze_raw,
-        is_unpin_raw,
-        has_surface_async_drop_raw,
-        has_surface_drop_raw,
-        ..*providers
-    };
+    *providers = Providers { is_copy_raw, is_sized_raw, is_freeze_raw, is_unpin_raw, ..*providers };
 }