Skip to content

Commit

Permalink
Enable lifetimes SROA MIR-opt test
Browse files Browse the repository at this point in the history
  • Loading branch information
JarlEvanson committed Jan 28, 2024
1 parent d1edc9d commit 1031598
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/mir-opt/sroa/lifetimes.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// skip-filecheck
// unit-test: ScalarReplacementOfAggregates
// compile-flags: -Cpanic=abort
// no-prefer-dynamic
Expand All @@ -16,6 +15,10 @@ struct Foo<T: Err> {

// EMIT_MIR lifetimes.foo.ScalarReplacementOfAggregates.diff
fn foo<T: Err>() {
// CHECK-LABEL: fn foo(

// CHECK-NOT: [foo:_.*]: Foo
// CHECK-NOT: Box<dyn std::fmt::Display + 'static>
let foo: Foo<T> = Foo {
x: Ok(Box::new(5_u32)),
y: 7_u32,
Expand Down

0 comments on commit 1031598

Please sign in to comment.