From 594a1287ea0d020ec3ced9cc6c81bc56be48e864 Mon Sep 17 00:00:00 2001 From: Matthew Leach Date: Fri, 6 Mar 2026 14:10:59 +0000 Subject: [PATCH] only enable core_intrinsics when testing --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7dbab6e..3e7fb88 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,8 +3,8 @@ #![feature(used_with_arg)] #![feature(likely_unlikely)] #![feature(box_as_ptr)] -#![expect(internal_features)] -#![feature(core_intrinsics)] +#![allow(internal_features)] +#![cfg_attr(test, feature(core_intrinsics))] #![feature(custom_test_frameworks)] #![reexport_test_harness_main = "test_main"] #![test_runner(crate::testing::test_runner)]