about summary refs log tree commit diff
path: root/tests/codegen/cffi
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/cffi
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/cffi')
-rw-r--r--tests/codegen/cffi/ffi-out-of-bounds-loads.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/codegen/cffi/ffi-out-of-bounds-loads.rs b/tests/codegen/cffi/ffi-out-of-bounds-loads.rs
index ae8d8383f5b..404f6237849 100644
--- a/tests/codegen/cffi/ffi-out-of-bounds-loads.rs
+++ b/tests/codegen/cffi/ffi-out-of-bounds-loads.rs
@@ -1,3 +1,4 @@
+//@ add-core-stubs
 //@ revisions: linux apple
 //@ min-llvm-version: 19
 //@ compile-flags: -Copt-level=0 -Cno-prepopulate-passes -Zlint-llvm-ir -Cllvm-args=-lint-abort-on-error
@@ -14,12 +15,8 @@
 #![no_std]
 #![no_core]
 
-#[lang = "sized"]
-trait Sized {}
-#[lang = "freeze"]
-trait Freeze {}
-#[lang = "copy"]
-trait Copy {}
+extern crate minicore;
+use minicore::*;
 
 #[repr(C)]
 struct S {