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/debuginfo | |
| 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/debuginfo')
| -rw-r--r-- | tests/debuginfo/recursive-type-with-gat.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/debuginfo/recursive-type-with-gat.rs b/tests/debuginfo/recursive-type-with-gat.rs index b8a67d8d24b..a4a1736ef5f 100644 --- a/tests/debuginfo/recursive-type-with-gat.rs +++ b/tests/debuginfo/recursive-type-with-gat.rs @@ -1,6 +1,8 @@ //@ compile-flags: -Cdebuginfo=2 +#![allow(sized_hierarchy_migration)] +#![feature(sized_hierarchy)] // added to keep parameters unconstrained -pub trait Functor +pub trait Functor: std::marker::PointeeSized { type With<T>: Functor; } @@ -17,20 +19,20 @@ impl<T> Functor for Vec<T> { pub struct Compose<F1, F2, T>(F1::With<F2::With<T>>) where - F1: Functor + ?Sized, - F2: Functor + ?Sized; + F1: Functor + std::marker::PointeeSized, + F2: Functor + std::marker::PointeeSized; impl<F1, F2, T> Functor for Compose<F1, F2, T> where - F1: Functor + ?Sized, - F2: Functor + ?Sized + F1: Functor + std::marker::PointeeSized, + F2: Functor + std::marker::PointeeSized, { type With<T2> = F1::With<F2::With<T2>> ; } pub enum Value<F> where - F: Functor + ?Sized, + F: Functor + std::marker::PointeeSized, { SignedInt(*mut F::With<i64>), Array(*mut Value<Compose<F, Vec<()>, ()>>), |
