From d37a04d09da8edb0d83ee5de30f2fa8db1758a85 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Sat, 21 Jun 2025 17:33:55 +0000 Subject: Remove the nullary intrinsic const eval logic and treat them like other intrinsics --- tests/ui/consts/const-fn-type-name.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/ui') diff --git a/tests/ui/consts/const-fn-type-name.rs b/tests/ui/consts/const-fn-type-name.rs index 5403c26b979..733ab79b7cd 100644 --- a/tests/ui/consts/const-fn-type-name.rs +++ b/tests/ui/consts/const-fn-type-name.rs @@ -5,7 +5,7 @@ #![allow(dead_code)] const fn type_name_wrapper(_: &T) -> &'static str { - core::intrinsics::type_name::() + const { core::intrinsics::type_name::() } } struct Struct { -- cgit 1.4.1-3-g733a5