diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-02-28 22:29:52 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-28 22:29:52 +0800 |
| commit | 50ed7f974b167ddaed825db269698f3c134db474 (patch) | |
| tree | b2917bc06ba10da6ae3a069a09e5b79214564f6d /tests/codegen/repr/transparent-byval-struct-ptr.rs | |
| parent | 50ef985be2680963c72c63c52fe33449aec58732 (diff) | |
| parent | 92eb4450fa1ae37a948178c9d14bfb145a69562d (diff) | |
| download | rust-50ed7f974b167ddaed825db269698f3c134db474.tar.gz rust-50ed7f974b167ddaed825db269698f3c134db474.zip | |
Rollup merge of #137599 - davidtwco:use-minicore-more, r=jieyouxu
tests: use minicore more minicore makes it much easier to add new language items to all of the existing `no_core` tests. Most of the remaining tests that *could* use minicore either fail because.. 1. LLVM IR output changes and doesn't pass the test as written. I didn't look into these further. 2. The test has revisions w/ different compilation flags, expecting some to fail, and when using minicore, minicore is compiled with those flags and fails in the expected way because of the flags rather than the test, and that's considered a failure. But these tests can be changed and make adding new language items a lot easier. r? ```@jieyouxu```
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 {} |
