From 15a0bfea6c9d54002101df198b2ab99926319104 Mon Sep 17 00:00:00 2001 From: Barry Date: Wed, 7 Jul 2021 14:54:29 +0800 Subject: [PATCH] Fix spin_loop error See issue [#55002](https://github.com/rust-lang/rust/issues/55002) --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 12232987..de568ab9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,6 +4,8 @@ #![deny(unused_must_use, missing_docs)] #![allow(clippy::identity_op)] #![allow(dead_code)] +/// cause core::hint::spin_loop need this feature eenabled. +#![feature(renamed_spin_loop)] // #[macro_use] extern crate log;