Skip to content

Commit 1031598

Browse files
committed
Enable lifetimes SROA MIR-opt test
1 parent d1edc9d commit 1031598

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/mir-opt/sroa/lifetimes.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// skip-filecheck
21
// unit-test: ScalarReplacementOfAggregates
32
// compile-flags: -Cpanic=abort
43
// no-prefer-dynamic
@@ -16,6 +15,10 @@ struct Foo<T: Err> {
1615

1716
// EMIT_MIR lifetimes.foo.ScalarReplacementOfAggregates.diff
1817
fn foo<T: Err>() {
18+
// CHECK-LABEL: fn foo(
19+
20+
// CHECK-NOT: [foo:_.*]: Foo
21+
// CHECK-NOT: Box<dyn std::fmt::Display + 'static>
1922
let foo: Foo<T> = Foo {
2023
x: Ok(Box::new(5_u32)),
2124
y: 7_u32,

0 commit comments

Comments
 (0)