Skip to content

Commit 390ee02

Browse files
committed
Remove the drop_in_place hack in cross_crate_inlinable
1 parent 2e0908b commit 390ee02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_mir_transform/src/cross_crate_inline.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ fn cross_crate_inlinable(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool {
7575
return false;
7676
}
7777

78+
/*
7879
if let Some(drop_in_place) = tcx.lang_items().drop_in_place_fn() {
7980
if rustc_hir::def_id::DefId::from(def_id) == drop_in_place {
8081
return true;
8182
}
8283
}
84+
*/
8385

8486
if !tcx.is_mir_available(def_id) {
8587
return false;

0 commit comments

Comments
 (0)