From 322cc315040da14c12f84d74fd5761c5d064e50e Mon Sep 17 00:00:00 2001 From: David Wood Date: Thu, 23 Jan 2025 11:25:12 +0000 Subject: 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. --- tests/ui/panic-handler/panic-handler-requires-panic-info.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/ui/panic-handler') diff --git a/tests/ui/panic-handler/panic-handler-requires-panic-info.rs b/tests/ui/panic-handler/panic-handler-requires-panic-info.rs index 0b8308ba753..618ac7d88dd 100644 --- a/tests/ui/panic-handler/panic-handler-requires-panic-info.rs +++ b/tests/ui/panic-handler/panic-handler-requires-panic-info.rs @@ -11,5 +11,11 @@ fn panic() -> ! { loop {} } +#[lang = "pointee_sized"] +pub trait PointeeSized {} + +#[lang = "meta_sized"] +pub trait MetaSized: PointeeSized {} + #[lang = "sized"] -trait Sized {} +trait Sized: MetaSized {} -- cgit 1.4.1-3-g733a5