]> git.lizzy.rs Git - rust.git/blobdiff - RELEASES.md
Fix tidy check for language and library features
[rust.git] / RELEASES.md
index 659fa901a010187413b799a88b90aa9ef29e875a..841467b69c9866438db0f012fa791e5c4ae89362 100644 (file)
@@ -22,20 +22,20 @@ Language
       let state = Creature::Crab("Ferris");
 
       if let Creature::Crab(name) | Creature::Person(name) = state {
-        println!("This creature's name is: {}", name);
+          println!("This creature's name is: {}", name);
       }
   }
   ```
 - [You can now have irrefutable `if let` and `while let` patterns.][57535] Using
   this feature will by default produce a warning as this behaviour can be
   unintuitive. E.g. `if let _ = 5 {}`
-- [You can now use `let` bindings, assignments, expression statements, and pattern destructuring in
-  const functions.][57175]
+- [You can now use `let` bindings, assignments, expression statements,
+  and irrefutable pattern destructuring in const functions.][57175]
 - [You can now call unsafe const functions.][57067] E.g.
   ```rust
   const unsafe fn foo() -> i32 { 5 }
   const fn bar() -> i32 {
-    unsafe { foo() }
+      unsafe { foo() }
   }
   ```
 - [You can now specify multiple attributes in a `cfg_attr` attribute.][57332]
@@ -52,6 +52,7 @@ Language
   pub trait Read {}
   ```
 - [`extern` functions will now abort by default when panicking.][55982]
+  This was previously undefined behaviour.
 
 Compiler
 --------
@@ -68,14 +69,14 @@ Compiler
 
 Libraries
 ---------
-- [The functions `overflowing_{add, sub, mul, shl, shr}` are now `const`
+- [The methods `overflowing_{add, sub, mul, shl, shr}` are now `const`
   functions for all numeric types.][57566]
-- [The functions `rotate_left`, `rotate_right`, and `wrapping_{add, sub, mul, shl, shr}`
+- [The methods `rotate_left`, `rotate_right`, and `wrapping_{add, sub, mul, shl, shr}`
   are now `const` functions for all numeric types.][57105]
-- [The functions `is_positive` and `is_negative` are now `const` functions for
+- [The methods `is_positive` and `is_negative` are now `const` functions for
   all signed numeric types.][57105]
 - [The `get` method for all `NonZero` types is now `const`.][57167]
-- [The functions `count_ones`, `count_zeros`, `leading_zeros`, `trailing_zeros`,
+- [The methods `count_ones`, `count_zeros`, `leading_zeros`, `trailing_zeros`,
   `swap_bytes`, `from_be`, `from_le`, `to_be`, `to_le` are now `const` for all
   numeric types.][57234]
 - [`Ipv4Addr::new` is now a `const` function][57234]
@@ -83,7 +84,7 @@ Libraries
 Stabilized APIs
 ---------------
 - [`unix::FileExt::read_exact_at`]
-- [`unix::FileExt::write_exact_at`]
+- [`unix::FileExt::write_all_at`]
 - [`Option::transpose`]
 - [`Result::transpose`]
 - [`convert::identity`]
@@ -104,9 +105,10 @@ Cargo
 
 Compatibility Notes
 -------------------
-- The functions `str::{trim_left, trim_right, trim_left_matches, trim_right_matches}`
-  are now offically deprecated, and their usage will now produce a warning. Please use the 
-  `str::{trim_start, trim_end, trim_start_matches, trim_end_matches}` functions instead.
+- The methods `str::{trim_left, trim_right, trim_left_matches, trim_right_matches}`
+  are now deprecated in the standard library, and their usage will now produce a warning.
+  Please use the `str::{trim_start, trim_end, trim_start_matches, trim_end_matches}`
+  methods instead.
 
 [57615]: https://github.com/rust-lang/rust/pull/57615/
 [57465]: https://github.com/rust-lang/rust/pull/57465/
@@ -126,10 +128,11 @@ Compatibility Notes
 [56303]: https://github.com/rust-lang/rust/pull/56303/
 [56351]: https://github.com/rust-lang/rust/pull/56351/
 [55982]: https://github.com/rust-lang/rust/pull/55982/
+[56362]: https://github.com/rust-lang/rust/pull/56362
 [57105]: https://github.com/rust-lang/rust/pull/57105
 [cargo/6484]: https://github.com/rust-lang/cargo/pull/6484/
 [`unix::FileExt::read_exact_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.read_exact_at
-[`unix::FileExt::write_exact_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.write_exact_at
+[`unix::FileExt::write_all_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.write_all_at
 [`Option::transpose`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.transpose
 [`Result::transpose`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.transpose
 [`convert::identity`]: https://doc.rust-lang.org/std/convert/fn.identity.html