Skip to content

Commit b0020c9

Browse files
committed
[For Comparison] What if we don't touch inlining?
1 parent 05f52c7 commit b0020c9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

compiler/rustc_middle/src/ty/instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ impl<'tcx> InstanceKind<'tcx> {
292292
use rustc_hir::definitions::DefPathData;
293293
let def_id = match *self {
294294
ty::InstanceKind::Item(def) => def,
295-
ty::InstanceKind::DropGlue(_, Some(ty)) => return ty.is_array(),
295+
ty::InstanceKind::DropGlue(_, Some(_)) => return false,
296296
ty::InstanceKind::AsyncDropGlueCtorShim(_, ty) => return ty.is_coroutine(),
297297
ty::InstanceKind::FutureDropPollShim(_, _, _) => return false,
298298
ty::InstanceKind::AsyncDropGlue(_, _) => return false,

tests/codegen-llvm/array-drop-glue.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212
// fragility from that changing we don't check any particular order.
1313

1414
// RAW: ; core::ptr::drop_glue::<[array_drop_glue::NeedsDrop; [[N:7|13|42]]]>
15-
// RAW-NEXT: inlinehint
15+
// RAW-NOT: inlinehint
1616
// RAW: call core::ptr::drop_glue::<[array_drop_glue::NeedsDrop]>
1717
// RAW-NEXT: noundef [[N]])
1818
// RAW: }
1919

2020
// RAW: ; core::ptr::drop_glue::<[array_drop_glue::NeedsDrop; [[N:7|13|42]]]>
21-
// RAW-NEXT: inlinehint
21+
// RAW-NOT: inlinehint
2222
// RAW: call core::ptr::drop_glue::<[array_drop_glue::NeedsDrop]>
2323
// RAW-NEXT: noundef [[N]])
2424
// RAW: }
2525

2626
// RAW: ; core::ptr::drop_glue::<[array_drop_glue::NeedsDrop; [[N:7|13|42]]]>
27-
// RAW-NEXT: inlinehint
27+
// RAW-NOT: inlinehint
2828
// RAW: call core::ptr::drop_glue::<[array_drop_glue::NeedsDrop]>
2929
// RAW-NEXT: noundef [[N]])
3030
// RAW: }

0 commit comments

Comments
 (0)