diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2025-06-13 18:25:15 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2025-06-13 18:59:41 -0700 |
| commit | 4658aee1270a89dbf89d26f68e7d6148f4c86563 (patch) | |
| tree | 591c02f4837a3df84aafb76b8af4d08bf459fef3 /tests/ui/target-feature | |
| parent | 8da623945f83933dd38644d5745532ee032e855b (diff) | |
| download | rust-4658aee1270a89dbf89d26f68e7d6148f4c86563.tar.gz rust-4658aee1270a89dbf89d26f68e7d6148f4c86563.zip | |
tests: Convert two handwritten minicores to add-core-stubs
Diffstat (limited to 'tests/ui/target-feature')
| -rw-r--r-- | tests/ui/target-feature/retpoline-target-feature-flag.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/ui/target-feature/retpoline-target-feature-flag.rs b/tests/ui/target-feature/retpoline-target-feature-flag.rs index 3e614a4236c..de3c44c3ed0 100644 --- a/tests/ui/target-feature/retpoline-target-feature-flag.rs +++ b/tests/ui/target-feature/retpoline-target-feature-flag.rs @@ -1,3 +1,4 @@ +//@ add-core-stubs //@ revisions: by_flag by_feature1 by_feature2 by_feature3 //@ compile-flags: --target=x86_64-unknown-linux-gnu --crate-type=lib //@ needs-llvm-components: x86 @@ -11,12 +12,9 @@ //@ [by_feature1]build-pass //@ [by_feature2]build-pass //@ [by_feature3]build-pass -#![feature(no_core, lang_items)] -#![no_std] +#![feature(no_core)] #![no_core] - -#[lang = "sized"] -pub trait Sized {} +extern crate minicore; //[by_feature1]~? WARN target feature `retpoline-external-thunk` cannot be enabled with `-Ctarget-feature`: use `retpoline-external-thunk` target modifier flag instead //[by_feature2]~? WARN target feature `retpoline-indirect-branches` cannot be enabled with `-Ctarget-feature`: use `retpoline` target modifier flag instead |
