about summary refs log tree commit diff
path: root/tests/codegen/function-return.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/function-return.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/function-return.rs')
-rw-r--r--tests/codegen/function-return.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/codegen/function-return.rs b/tests/codegen/function-return.rs
index 2b9de4e1478..4127f516038 100644
--- a/tests/codegen/function-return.rs
+++ b/tests/codegen/function-return.rs
@@ -1,6 +1,7 @@
 // Test that the `fn_ret_thunk_extern` function attribute is (not) emitted when
 // the `-Zfunction-return={keep,thunk-extern}` flag is (not) set.
 
+//@ add-core-stubs
 //@ revisions: unset keep thunk-extern keep-thunk-extern thunk-extern-keep
 //@ needs-llvm-components: x86
 //@ compile-flags: --target x86_64-unknown-linux-gnu
@@ -13,8 +14,8 @@
 #![feature(no_core, lang_items)]
 #![no_core]
 
-#[lang = "sized"]
-trait Sized {}
+extern crate minicore;
+use minicore::*;
 
 #[no_mangle]
 pub fn foo() {