You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*: Update rust toolchain to nightly-2025-04-03 (#18416)
ref #17465
Following #17605, another attempt to update rust toolchain
Changes:
- Language
- After rust-lang/rust#134258, we can't manually impl both `ToString` and `fmt::Display`, so this PR add a new trait `ToStringValue` to work around types type produces different result between ToString and Display.
- Clippy
- `Option::map_or(false, ...)` --> `Option::is_some_and(...)`
- `Option::map_or(true, ...)` --> `Option::is_none_or(...)`
- `(a + b - 1 )/ b` --> `a.div_ceil(b)`
- `io::Error::new(ErrorKind::Other, ...)` --> ` io::Error::other(...)`
- `Slice::group_by` --> `Slice::chunk_by`
- `Result::map_err(|e| {...; e})` --> `Result::inspect_err(|e| { ... })`
- `Map::get(&key).is_{some, none}()` --> `Map::contains_key()`
- Formatter
- The import order now follows ascii order, e.g. before is "use crate::{a, b, c, A, B, C}", after is "use crate::{A, B, C, a, b, c}". Most changes are due to this.
- List in rust doc should be properly aligned.
- cargo-deny
- `vulnerability`, `notice` and `unsound` can't be config in version 2, and `unmaintained` can't be allowed anymore(but support setting `workspace` to allow indirected pkgs). So replacing some unmaintained packages with suggested alternatives. (See: #18416)
Signed-off-by: glorv <[email protected]>
0 commit comments