File tree Expand file tree Collapse file tree
compiler/src/passes/instr Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -214,21 +214,9 @@ fn is_lang_start_item(tcx: TyCtxt<'_>, def_id: DefId) -> bool {
214214fn 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
You can’t perform that action at this time.
0 commit comments