Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5747ece

Browse files
committed
add FIXME for default_boxed_slice.rs
1 parent cd77d59 commit 5747ece

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/mir-opt/dataflow-const-prop/default_boxed_slice.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// EMIT_MIR_FOR_EACH_BIT_WIDTH
55
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
66

7+
// This test is to check ICE in issue [#115789](https://github.com/rust-lang/rust/issues/115789).
8+
79
struct A {
810
foo: Box<[bool]>,
911
}
@@ -14,13 +16,14 @@ struct A {
1416
// CHECK-LABEL: fn main(
1517
fn main() {
1618
// ConstProp will create a constant of type `Box<[bool]>`.
19+
// FIXME: it is not yet a constant.
20+
1721
// Verify that `DataflowConstProp` does not ICE trying to dereference it directly.
1822

1923
// CHECK: debug a => [[a:_.*]];
2024
// We may check other inlined functions as well...
2125

22-
// CHECK: [[box_obj:_.*]] = Box::<[bool]>(_3, const std::alloc::Global);
23-
// CHECK: [[a]] = A { foo: move [[box_obj]] };
24-
// FIXME: we do not have `const Box::<[bool]>` after constprop right now.
26+
// CHECK-LABEL: _.* = Box::<[bool]>(
27+
// FIXME: should be `_.* = const Box::<[bool]>`
2528
let a: A = A { foo: Box::default() };
2629
}

0 commit comments

Comments
 (0)