chore: 将工具链更新到2024-07-23 (#864)

* chore: 将工具链更新到2024-07-23
This commit is contained in:
LoGin
2024-07-25 00:55:02 +08:00
committed by GitHub
parent 634349e0eb
commit bd70d2d1f4
150 changed files with 237 additions and 200 deletions

View File

@ -2,6 +2,7 @@
#![feature(core_intrinsics)]
#![allow(incomplete_features)] // for const generics
#![feature(generic_const_exprs)]
#![allow(internal_features)]
#![allow(clippy::needless_return)]
#[macro_use]

View File

@ -14,6 +14,15 @@ where
core: BitMapCore<usize>,
}
impl<const N: usize> Default for StaticBitmap<N>
where
[(); (N + usize::BITS as usize - 1) / (usize::BITS as usize)]:,
{
fn default() -> Self {
Self::new()
}
}
impl<const N: usize> StaticBitmap<N>
where
[(); (N + usize::BITS as usize - 1) / (usize::BITS as usize)]:,

View File

@ -182,11 +182,6 @@ macro_rules! bitops_for {
}
}
#[cfg(feature = "std")]
fn to_hex(bits: &Self) -> String {
format!("{:x}", bits)
}
#[inline]
fn bit_size() -> usize {
<$target>::BITS as usize