From 4b0cd8edd9831d84c20d1b25eeca28f264442de9 Mon Sep 17 00:00:00 2001 From: jyn Date: Wed, 15 Jul 2026 10:00:47 +0000 Subject: [PATCH] make a couple codegen-llvm tests compatible with 2021 edition previously they failed for simple syntax reasons. --- tests/codegen-llvm/fatptr.rs | 2 +- tests/codegen-llvm/reg-struct-return.rs | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/tests/codegen-llvm/fatptr.rs b/tests/codegen-llvm/fatptr.rs index 041807202b841..91efe04efc8f5 100644 --- a/tests/codegen-llvm/fatptr.rs +++ b/tests/codegen-llvm/fatptr.rs @@ -6,7 +6,7 @@ pub trait T {} // CHECK-LABEL: @copy_fat_ptr #[no_mangle] -pub fn copy_fat_ptr(x: &T) { +pub fn copy_fat_ptr(x: &dyn T) { // CHECK-NOT: extractvalue let x2 = x; } diff --git a/tests/codegen-llvm/reg-struct-return.rs b/tests/codegen-llvm/reg-struct-return.rs index f45e66c96d630..52a1e174dfe6b 100644 --- a/tests/codegen-llvm/reg-struct-return.rs +++ b/tests/codegen-llvm/reg-struct-return.rs @@ -90,17 +90,7 @@ pub struct FooFloat3 { } pub mod tests { - use Foo; - use Foo1; - use Foo2; - use Foo3; - use Foo4; - use Foo5; - use FooFloat1; - use FooFloat2; - use FooFloat3; - use FooOversize1; - use FooOversize2; + use super::*; // ENABLED: i64 @f1() // DISABLED: void @f1(ptr {{.*}}sret