about summary refs log tree commit diff
path: root/tests/codegen
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2025-06-13 18:25:15 -0700
committerJubilee Young <workingjubilee@gmail.com>2025-06-13 18:59:41 -0700
commit4658aee1270a89dbf89d26f68e7d6148f4c86563 (patch)
tree591c02f4837a3df84aafb76b8af4d08bf459fef3 /tests/codegen
parent8da623945f83933dd38644d5745532ee032e855b (diff)
downloadrust-4658aee1270a89dbf89d26f68e7d6148f4c86563.tar.gz
rust-4658aee1270a89dbf89d26f68e7d6148f4c86563.zip
tests: Convert two handwritten minicores to add-core-stubs
Diffstat (limited to 'tests/codegen')
-rw-r--r--tests/codegen/retpoline.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/codegen/retpoline.rs b/tests/codegen/retpoline.rs
index 30fdd9c2db2..915c2c3d797 100644
--- a/tests/codegen/retpoline.rs
+++ b/tests/codegen/retpoline.rs
@@ -3,18 +3,16 @@
 // `retpoline-external-thunk`, `retpoline-indirect-branches`, `retpoline-indirect-calls`
 // target features are (not) emitted when the `retpoline/retpoline-external-thunk` flag is (not) set.
 
+//@ add-core-stubs
 //@ revisions: disabled enabled_retpoline enabled_retpoline_external_thunk
 //@ needs-llvm-components: x86
 //@ compile-flags: --target x86_64-unknown-linux-gnu
 //@ [enabled_retpoline] compile-flags: -Zretpoline
 //@ [enabled_retpoline_external_thunk] compile-flags: -Zretpoline-external-thunk
-
 #![crate_type = "lib"]
-#![feature(no_core, lang_items)]
+#![feature(no_core)]
 #![no_core]
-
-#[lang = "sized"]
-trait Sized {}
+extern crate minicore;
 
 #[no_mangle]
 pub fn foo() {