X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=RELEASES.md;h=19fe97deacca691d621f0bd071c560f7a6de6613;hb=87c143661cd09678d94cabdf5d5dfeedbc3782b0;hp=f06a81c39c4e2f7134f2dce4c3ecc67adc9d9726;hpb=6e59a9d112cdf0f33968a2d6d1865a6494e04b1b;p=rust.git diff --git a/RELEASES.md b/RELEASES.md index f06a81c39c4..19fe97deacc 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -4,7 +4,7 @@ Version 1.54.0 (2021-07-29) Language ----------------------- -- [You can now use macros for values in key-value attributes.][83366] +- [You can now use macros for values in built-in attribute macros.][83366] While a seemingly minor addition on its own, this enables a lot of powerful functionality when combined correctly. Most notably you can now include external documentation in your crate by writing the following. @@ -68,7 +68,7 @@ Stabilized APIs - [`VecDeque::partition_point`] Cargo ------------------------ +----- - [Added the `--prune ` option to `cargo-tree` to remove a package from the dependency graph.][cargo/9520] @@ -80,6 +80,20 @@ Cargo This variable points to a directory that integration tests and benches can use as a "scratchpad" for testing filesystem operations. +Compatibility Notes +------------------- +- [Mixing Option and Result via `?` is no longer permitted in closures for inferred types.][86831] +- [Previously unsound code is no longer permitted where different constructors in branches + could require different lifetimes.][85574] +- As previously mentioned the [`std::arch` instrinsics now uses stricter const checking][83278] + than before and may reject some previously accepted code. +- [`i128` multiplication on Cortex M0+ platforms currently unconditionally causes overflow + when compiled with `codegen-units = 1`.][86063] + +[85574]: https://github.com/rust-lang/rust/issues/85574 +[86831]: https://github.com/rust-lang/rust/issues/86831 +[86063]: https://github.com/rust-lang/rust/issues/86063 +[86831]: https://github.com/rust-lang/rust/issues/86831 [79608]: https://github.com/rust-lang/rust/pull/79608 [84988]: https://github.com/rust-lang/rust/pull/84988 [84701]: https://github.com/rust-lang/rust/pull/84701 @@ -154,7 +168,7 @@ Libraries - [`leading_zeros`, and `trailing_zeros` are now available on all `NonZero` integer types.][84082] - [`{f32, f64}::from_str` now parse and print special values - (`NaN`, `-0`) according to IEEE RFC 754.][78618] + (`NaN`, `-0`) according to IEEE 754.][78618] - [You can now index into slices using `(Bound, Bound)`.][77704] - [Add the `BITS` associated constant to all numeric types.][82565]