diff options
| author | David Wood <david.wood2@arm.com> | 2025-02-24 09:26:54 +0000 |
|---|---|---|
| committer | David Wood <david.wood2@arm.com> | 2025-02-24 09:26:54 +0000 |
| commit | 92eb4450fa1ae37a948178c9d14bfb145a69562d (patch) | |
| tree | 7e0aff3d84b6a0cfa1daba772fe30426b3daab16 /tests/codegen/repr/transparent-byval-struct-ptr.rs | |
| parent | ad27045c31a9f37ad7d44ca2a403de52d1a896d3 (diff) | |
| download | rust-92eb4450fa1ae37a948178c9d14bfb145a69562d.tar.gz rust-92eb4450fa1ae37a948178c9d14bfb145a69562d.zip | |
tests: use minicore more
minicore makes it much easier to add new language items to all of the existing `no_core` tests.
Diffstat (limited to 'tests/codegen/repr/transparent-byval-struct-ptr.rs')
| -rw-r--r-- | tests/codegen/repr/transparent-byval-struct-ptr.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/codegen/repr/transparent-byval-struct-ptr.rs b/tests/codegen/repr/transparent-byval-struct-ptr.rs index f9cfeb90390..0918884144f 100644 --- a/tests/codegen/repr/transparent-byval-struct-ptr.rs +++ b/tests/codegen/repr/transparent-byval-struct-ptr.rs @@ -1,3 +1,4 @@ +//@ add-core-stubs //@ revisions: i686-linux i686-freebsd x64-linux x64-apple //@ compile-flags: -Copt-level=3 -C no-prepopulate-passes @@ -21,14 +22,9 @@ #![no_std] #![no_core] -#[lang = "sized"] -trait Sized {} -#[lang = "freeze"] -trait Freeze {} -#[lang = "copy"] -trait Copy {} +extern crate minicore; +use minicore::*; -impl Copy for [u32; 16] {} impl Copy for BigS {} impl Copy for BigU {} |
