diff options
| author | David Wood <david.wood2@arm.com> | 2025-02-24 09:26:54 +0000 | 
|---|---|---|
| committer | David Wood <david.wood2@arm.com> | 2025-02-24 09:26:54 +0000 | 
| commit | 92eb4450fa1ae37a948178c9d14bfb145a69562d (patch) | |
| tree | 7e0aff3d84b6a0cfa1daba772fe30426b3daab16 /tests/codegen/fixed-x18.rs | |
| parent | ad27045c31a9f37ad7d44ca2a403de52d1a896d3 (diff) | |
| download | rust-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/fixed-x18.rs')
| -rw-r--r-- | tests/codegen/fixed-x18.rs | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/tests/codegen/fixed-x18.rs b/tests/codegen/fixed-x18.rs index 4997a39a726..a5767cfa456 100644 --- a/tests/codegen/fixed-x18.rs +++ b/tests/codegen/fixed-x18.rs @@ -1,6 +1,7 @@ // Test that the `reserve-x18` target feature is (not) emitted when // the `-Zfixed-x18` flag is (not) set. +//@ add-core-stubs //@ revisions: unset set //@ needs-llvm-components: aarch64 //@ compile-flags: --target aarch64-unknown-none @@ -10,8 +11,8 @@ #![feature(no_core, lang_items)] #![no_core] -#[lang = "sized"] -trait Sized {} +extern crate minicore; +use minicore::*; #[no_mangle] pub fn foo() { | 
