Skip to content

Commit ea5db02

Browse files
committed
Remove dropped async drop functions
Following rust-lang/rust#123948
1 parent bc44484 commit ea5db02

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

compiler/src/passes/instr/decision.rs

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -214,21 +214,9 @@ fn is_lang_start_item(tcx: TyCtxt<'_>, def_id: DefId) -> bool {
214214
fn is_drop_fn(tcx: TyCtxt<'_>, def_id: DefId) -> bool {
215215
let mut drop_fn_ids = {
216216
use rustc_hir::LanguageItems as Items;
217-
[
218-
Items::drop_in_place_fn,
219-
Items::async_drop_in_place_fn,
220-
Items::surface_async_drop_in_place_fn,
221-
Items::async_drop_surface_drop_in_place_fn,
222-
Items::async_drop_slice_fn,
223-
Items::async_drop_chain_fn,
224-
Items::async_drop_noop_fn,
225-
Items::async_drop_deferred_drop_in_place_fn,
226-
Items::async_drop_fuse_fn,
227-
Items::async_drop_defer_fn,
228-
Items::async_drop_either_fn,
229-
]
230-
.iter()
231-
.filter_map(|item| item(tcx.lang_items()))
217+
[Items::drop_in_place_fn, Items::async_drop_in_place_fn]
218+
.iter()
219+
.filter_map(|item| item(tcx.lang_items()))
232220
};
233221
drop_fn_ids.any(|id| id == def_id)
234222
|| tcx

0 commit comments

Comments
 (0)