rust-lang/rust
rust-lang/rust
Activity
Last release
Open issues
Open PRs
License
release notes
release notes
Published 9/10/2020
MinorContains new featuresif, match, and loop expressions can now be used in const functions.&[T]) in const functions.#[track_caller] attribute can now be added to functions to use the function's caller's location information for panic messages.x.0.0 over (x.0).0.mem::transmute can now be used in statics and constants. Note You currently can't use mem::transmute in constant functions.cdylib target on Apple iOS and tvOS platforms.x86_64-unknown-linux-musl.mem::forget is now a const fn.String now implements From<char>.leading_ones, and trailing_ones methods have been stabilised for all integer types.vec::IntoIter<T> now implements AsRef<[T]>.NonZeroU8) now implement TryFrom for their zero-able equivalent (e.g. TryFrom<u8>).&[T] and &mut [T] now implement PartialEq<Vec<T>>.(String, u16) now implements ToSocketAddrs.vec::Drain<'_, T> now implements AsRef<[T]>.Added a number of new environment variables that are now available when compiling your crate.
CARGO_BIN_NAME and CARGO_CRATE_NAME Providing the name of the specific binary being compiled and the name of the crate.CARGO_PKG_LICENSE The license from the manifest of the package.CARGO_PKG_LICENSE_FILE The path to the license file.abi_blacklist has been renamed to unsupported_abis. The old name will still continue to work.Drop. This was previously accepted but will become a hard error in a future release.#[repr(i128)] or #[repr(u128)]. This representation is currently only allowed on enums.macro_rules! are now always captured. This helps ensure that spans have the correct information, and may cause breakage if you were relying on receiving spans with dummy information.{f32, f64}::asinh now returns the correct values for negative numbers.rustc would erroneously allow you to pass a shorter lifetime than expected.libz (also called zlib) on Linux. The library will need to be installed for rustc to work, even though we expect it to be already available on most systems.#[should_panic] are broken on ARMv7 while running under QEMU.release notes
Published 9/10/2020
MinorContains new featuresif, match, and loop expressions can now be used in const functions.&[T]) in const functions.#[track_caller] attribute can now be added to functions to use the function's caller's location information for panic messages.x.0.0 over (x.0).0.mem::transmute can now be used in statics and constants. Note You currently can't use mem::transmute in constant functions.cdylib target on Apple iOS and tvOS platforms.x86_64-unknown-linux-musl.mem::forget is now a const fn.String now implements From<char>.leading_ones, and trailing_ones methods have been stabilised for all integer types.vec::IntoIter<T> now implements AsRef<[T]>.NonZeroU8) now implement TryFrom for their zero-able equivalent (e.g. TryFrom<u8>).&[T] and &mut [T] now implement PartialEq<Vec<T>>.(String, u16) now implements ToSocketAddrs.vec::Drain<'_, T> now implements AsRef<[T]>.Added a number of new environment variables that are now available when compiling your crate.
CARGO_BIN_NAME and CARGO_CRATE_NAME Providing the name of the specific binary being compiled and the name of the crate.CARGO_PKG_LICENSE The license from the manifest of the package.CARGO_PKG_LICENSE_FILE The path to the license file.abi_blacklist has been renamed to unsupported_abis. The old name will still continue to work.Drop. This was previously accepted but will become a hard error in a future release.#[repr(i128)] or #[repr(u128)]. This representation is currently only allowed on enums.macro_rules! are now always captured. This helps ensure that spans have the correct information, and may cause breakage if you were relying on receiving spans with dummy information.{f32, f64}::asinh now returns the correct values for negative numbers.rustc would erroneously allow you to pass a shorter lifetime than expected.libz (also called zlib) on Linux. The library will need to be installed for rustc to work, even though we expect it to be already available on most systems.#[should_panic] are broken on ARMv7 while running under QEMU.Empowering everyone to build reliable and efficient software.