about summary refs log tree commit diff
path: root/tests/codegen/frame-pointer.rs
diff options
context:
space:
mode:
authorDavid Wood <david.wood2@arm.com>2025-02-24 09:26:54 +0000
committerDavid Wood <david.wood2@arm.com>2025-02-24 09:26:54 +0000
commit92eb4450fa1ae37a948178c9d14bfb145a69562d (patch)
tree7e0aff3d84b6a0cfa1daba772fe30426b3daab16 /tests/codegen/frame-pointer.rs
parentad27045c31a9f37ad7d44ca2a403de52d1a896d3 (diff)
downloadrust-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/frame-pointer.rs')
-rw-r--r--tests/codegen/frame-pointer.rs9
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]