From 8332b47cae210e88457ea466e4cd48265f05f113 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Tue, 12 Mar 2024 06:40:23 +0000 Subject: Stop walking the bodies of statics for reachability, and evaluate them instead --- tests/codegen/dont_codegen_private_const_fn_only_used_in_const_eval.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/codegen') diff --git a/tests/codegen/dont_codegen_private_const_fn_only_used_in_const_eval.rs b/tests/codegen/dont_codegen_private_const_fn_only_used_in_const_eval.rs index 723ac015cdc..eeeaebe52dd 100644 --- a/tests/codegen/dont_codegen_private_const_fn_only_used_in_const_eval.rs +++ b/tests/codegen/dont_codegen_private_const_fn_only_used_in_const_eval.rs @@ -7,4 +7,4 @@ const fn foo() {} pub static FOO: () = foo(); -// CHECK: define{{.*}}foo{{.*}} +// CHECK-NOT: define{{.*}}foo{{.*}} -- cgit 1.4.1-3-g733a5