diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index af303dcf..b9745b64 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -96,7 +96,7 @@ jobs: # https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability strategy: matrix: - msrv: [1.84.0] # sync with ../../{README.md, Cargo.toml} + msrv: [1.84.1] # sync with ../../{README.md, Cargo.toml} steps: - name: "checkout" uses: actions/checkout@v4 diff --git a/DOCS/NIGHTLY.md b/DOCS/NIGHTLY.md index 44b6b3fc..04318e95 100644 --- a/DOCS/NIGHTLY.md +++ b/DOCS/NIGHTLY.md @@ -34,6 +34,7 @@ See also # 1.86 will be stable on 2025-04-03 (nightly_stable_next2) - 1.86: ·[float_next_up_down](https://github.com/rust-lang/rust/pull/135661) +- 1.86: ·[const_black_box](https://github.com/rust-lang/rust/pull/135414) # .‥… will be stable later (nightly_stable_later) - 1.??: ✗[anonymous_pipe](https://github.com/rust-lang/rust/pull/135822) @@ -42,7 +43,6 @@ See also - 1.??: ·[cell_update](https://github.com/rust-lang/rust/pull/134446) - 1.??: ·[const_array_from_ref](https://github.com/rust-lang/rust/issues/90206) · const_slice_from_ref -- 1.??: ·[const_black_box](https://github.com/rust-lang/rust/pull/135414) - 1.??: ·[const_is_char_boundary](https://github.com/rust-lang/rust/pull/134016) · const_str_split_at - 1.??: ·[const_slice_flatten](https://github.com/rust-lang/rust/pull/134995) diff --git a/src/data/codec/radix/base.rs b/src/data/codec/radix/base.rs index 6ba9ac3b..5863e12b 100644 --- a/src/data/codec/radix/base.rs +++ b/src/data/codec/radix/base.rs @@ -310,7 +310,8 @@ macro_rules! methods { i += 1; continue; } // Skip invalid character - if byte == mapped.unwrap() || (CASE && byte == mapped.unwrap().to_ascii_lowercase()) { + if byte == mapped.unwrap() + || (CASE && byte == mapped.unwrap().to_ascii_lowercase()) { return Some(i as u8); } i += 1; @@ -328,7 +329,7 @@ macro_rules! methods { pub const fn encoded_len_padded(input_len: usize) -> usize { let base_len = (input_len * 8).div_ceil($chunk_bits); if PAD { - (base_len + 7) / 8 * 8 // Round up to nearest multiple of 8 + base_len.div_ceil(8) * 8 // Round up to nearest multiple of 8 } else { base_len } diff --git a/src/data/mod.rs b/src/data/mod.rs index 3c3cde51..f1521d48 100644 --- a/src/data/mod.rs +++ b/src/data/mod.rs @@ -43,7 +43,7 @@ crate::items! { // structural access: _mods, _pub_mods, _internals, _all, _alway } mod _pub_mods { #![allow(unused)] pub use super::{ - codec::_all::*, error::*, iter::_all::*, key::_all::*, list::_all::*, + codec::_all::*, error::_all::*, iter::_all::*, key::_all::*, list::_all::*, table::_all::*, uid::_all::*, xipher::_all::*, }; @@ -68,7 +68,7 @@ crate::items! { // structural access: _mods, _pub_mods, _internals, _all, _alway } pub(super) mod _always { #![allow(unused)] pub use super::{ - codec::_always::*, collection::*, error::*, iter::_always::*, list::_always::*, + codec::_always::*, collection::*, error::_all::*, iter::_always::*, list::_always::*, }; } } diff --git a/src/data/node/mod.rs b/src/data/node/mod.rs index 97d0f0ed..a6c0cb1a 100644 --- a/src/data/node/mod.rs +++ b/src/data/node/mod.rs @@ -2,8 +2,8 @@ // //! Abstractions for structured relationships. //! -//! Nodes are a basic unit used to build more complex structures, -//! like linked lists, graphs and trees. +//! This module provides tools for building and managing structured relationships +//! in data systems. These abstractions are designed to work together. // // mod index; diff --git a/src/lib.rs b/src/lib.rs index 41801705..7ba72b57 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -63,7 +63,7 @@ feature(const_collections_with_hasher,) )] // "nightly_stable_next2": 1.86 core, alloc, std… -#![cfg_attr(feature = "nightly_stable_next2", feature(float_next_up_down,))] +#![cfg_attr(feature = "nightly_stable_next2", feature(const_black_box, float_next_up_down))] #![cfg_attr(all(feature = "nightly_stable_next2", feature = "alloc"), feature())] #![cfg_attr(all(feature = "nightly_stable_next2", feature = "std"), feature())] // "nightly_stable_later": 1.?? core, alloc, std, not(miri)… @@ -72,7 +72,6 @@ asm_goto, cell_update, const_array_from_ref, - const_black_box, const_is_char_boundary, const_slice_flatten, const_slice_from_ref, diff --git a/src/num/rand/xorshift/mod.rs b/src/num/rand/xorshift/mod.rs index 62003bb4..eba8115b 100644 --- a/src/num/rand/xorshift/mod.rs +++ b/src/num/rand/xorshift/mod.rs @@ -53,7 +53,6 @@ crate::items! { /// - `$triplet`: `0..=3` for 16-bit; `0..=80` for 32-bit; `0..=274` for 64-bit. /// - `$seed`: any value. If `0` is given the default seed will be used. /// - /// /// # Panics /// If the `$basis` is outside range `0..=7`. //