Many existing methods were made const , allowing them to be used in constant contexts: The new method for all NonZero integers.
: A significant standard library change now allows traits like Debug , Default , and PartialEq to be implemented for arrays of any length , lifting the previous restriction of length 32 or less. What’s new in Rust 1.47
Result::as_deref and Result::as_deref_mut : Useful for working with references inside Result types. Many existing methods were made const , allowing
: The output of RUST_BACKTRACE was made more readable and compact. Stabilised Library APIs Many existing methods were made const