diff options
| author | David Wood <david.wood2@arm.com> | 2025-01-23 11:25:12 +0000 |
|---|---|---|
| committer | David Wood <david.wood2@arm.com> | 2025-06-16 23:04:33 +0000 |
| commit | 322cc315040da14c12f84d74fd5761c5d064e50e (patch) | |
| tree | 5ee130130df3546a2f012dd84ad8bc95819da381 /tests/ui/target-feature/feature-hierarchy.rs | |
| parent | c6d88a1892ed9a7e6b12d116070be59114a624ad (diff) | |
| download | rust-322cc315040da14c12f84d74fd5761c5d064e50e.tar.gz rust-322cc315040da14c12f84d74fd5761c5d064e50e.zip | |
tests: `{Meta,Pointee}Sized` in non-minicore tests
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.
Diffstat (limited to 'tests/ui/target-feature/feature-hierarchy.rs')
| -rw-r--r-- | tests/ui/target-feature/feature-hierarchy.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/ui/target-feature/feature-hierarchy.rs b/tests/ui/target-feature/feature-hierarchy.rs index 315ec983a19..ccf32a35f72 100644 --- a/tests/ui/target-feature/feature-hierarchy.rs +++ b/tests/ui/target-feature/feature-hierarchy.rs @@ -12,10 +12,18 @@ // Tests vetting "feature hierarchies" in the cases where we impose them. // Supporting minimal rust core code +#[lang = "pointee_sized"] +trait PointeeSized {} + +#[lang = "meta_sized"] +trait MetaSized: PointeeSized {} + #[lang = "sized"] -trait Sized {} +trait Sized: MetaSized {} + #[lang = "copy"] trait Copy {} + impl Copy for bool {} #[stable(feature = "test", since = "1.0.0")] |
