mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00

As before, add `MetaSized` and `PointeeSized` traits to all of the non-minicore `no_core` tests so that they don't fail for lack of language items.
31 lines
991 B
Rust
31 lines
991 B
Rust
//@ revisions: one two three four
|
|
//@ compile-flags: --crate-type=rlib --target=aarch64-unknown-linux-gnu
|
|
//@ needs-llvm-components: aarch64
|
|
//
|
|
//
|
|
//@ [one] check-fail
|
|
//@ [one] compile-flags: -C target-feature=+paca
|
|
//@ [two] check-fail
|
|
//@ [two] compile-flags: -C target-feature=-pacg,+pacg
|
|
//@ [three] check-fail
|
|
//@ [three] compile-flags: -C target-feature=+paca,+pacg,-paca
|
|
//@ [four] build-pass
|
|
//@ [four] compile-flags: -C target-feature=-paca,+pacg -C target-feature=+paca
|
|
#![feature(no_core, lang_items)]
|
|
#![no_core]
|
|
|
|
#[lang = "pointee_sized"]
|
|
pub trait PointeeSized {}
|
|
|
|
#[lang = "meta_sized"]
|
|
pub trait MetaSized: PointeeSized {}
|
|
|
|
#[lang = "sized"]
|
|
pub trait Sized: MetaSized {}
|
|
|
|
fn main() {}
|
|
|
|
//[one]~? ERROR the target features paca, pacg must all be either enabled or disabled together
|
|
//[two]~? ERROR the target features paca, pacg must all be either enabled or disabled together
|
|
//[three]~? ERROR the target features paca, pacg must all be either enabled or disabled together
|