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/frame-pointer.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/frame-pointer.rs')
| -rw-r--r-- | tests/codegen/frame-pointer.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/codegen/frame-pointer.rs b/tests/codegen/frame-pointer.rs index da81c2e9cd9..1f7c9a59c98 100644 --- a/tests/codegen/frame-pointer.rs +++ b/tests/codegen/frame-pointer.rs @@ -1,3 +1,4 @@ +//@ add-core-stubs //@ compile-flags: --crate-type=rlib -Copt-level=0 //@ revisions: aarch64-apple aarch64-linux force x64-apple x64-linux //@ [aarch64-apple] needs-llvm-components: aarch64 @@ -13,11 +14,9 @@ #![feature(no_core, lang_items)] #![no_core] -#[lang = "sized"] -trait Sized {} -#[lang = "copy"] -trait Copy {} -impl Copy for u32 {} + +extern crate minicore; +use minicore::*; // CHECK: define i32 @peach{{.*}}[[PEACH_ATTRS:\#[0-9]+]] { #[no_mangle] |
