|
| 1 | +Version 1.42.0 (2020-03-12) |
| 2 | +========================== |
| 3 | + |
| 4 | +Language |
| 5 | +-------- |
| 6 | +- [You can now use `#[repr(transparent)]` on univariant `enum`s.][68122] Meaning |
| 7 | + that you can create an enum that has the exact layout and ABI of the type |
| 8 | + it contains. |
| 9 | +- [You can now use the slice pattern syntax with subslices.][67712] e.g. |
| 10 | + ```rust |
| 11 | + fn foo(words: &[&str]) { |
| 12 | + match words { |
| 13 | + ["Hello", "World", "!", ..] => println!("Hello World!"), |
| 14 | + ["Foo", "Bar", ..] => println!("Baz"), |
| 15 | + rest => println!("{}", rest), |
| 16 | + } |
| 17 | + } |
| 18 | + ``` |
| 19 | + <!-- TODO --> |
| 20 | +- [Merge `TraitItem` & `ImplItem into `AssocItem`][67131] |
| 21 | + |
| 22 | +Compiler |
| 23 | +-------- |
| 24 | +- [Added tier 3\* support for `armv7a-none-eabi`.][68253] |
| 25 | +- [Added tier 3 support for `riscv64gc-unknown-linux-gnu`.][68037] |
| 26 | +- [`Option::{expect,unwrap}` and |
| 27 | + `Result::{expect, expect_err, unwrap, unwrap_err}` now produce panic messages |
| 28 | + pointing to the location where they were called, rather than |
| 29 | + `core`'s internals. ][67887] |
| 30 | + |
| 31 | +Libraries |
| 32 | +--------- |
| 33 | +- [`iter::Empty<T>` now implements Send and Sync for any `T`.][68348] |
| 34 | +- [`Pin::{map_unchecked, map_unchecked_mut}` no longer require the return type |
| 35 | + to implement `Sized`.][67935] |
| 36 | +- [`io::Cursor` now derives `PartialEq` and `Eq`.][67233] |
| 37 | +- [`Layout::new` is now `const`.][66254] |
| 38 | +- [Added Standard Library support for `riscv64gc-unknown-linux-gnu`.][66899] |
| 39 | + |
| 40 | + |
| 41 | +Stabilized APIs |
| 42 | +--------------- |
| 43 | +- [`DebugMap::key`] |
| 44 | +- [`DebugMap::value`] |
| 45 | +- [`ManuallyDrop::take`] |
| 46 | +- [`matches!`] |
| 47 | +- [`ptr::slice_from_raw_parts_mut`] |
| 48 | +- [`ptr::slice_from_raw_parts`] |
| 49 | +- [`wait_timeout_while`] |
| 50 | +- [`wait_while`] |
| 51 | + |
| 52 | +Compatibility Notes |
| 53 | +------------------- |
| 54 | +- [`Error::description` has been deprecated, and its use will now produce a |
| 55 | + warning.][66919] It's recommended to use `Display`/`to_string` instead. |
| 56 | + |
| 57 | +[68253]: https://github.com/rust-lang/rust/pull/68253/ |
| 58 | +[68348]: https://github.com/rust-lang/rust/pull/68348/ |
| 59 | +[67935]: https://github.com/rust-lang/rust/pull/67935/ |
| 60 | +[68037]: https://github.com/rust-lang/rust/pull/68037/ |
| 61 | +[68122]: https://github.com/rust-lang/rust/pull/68122/ |
| 62 | +[67712]: https://github.com/rust-lang/rust/pull/67712/ |
| 63 | +[67887]: https://github.com/rust-lang/rust/pull/67887/ |
| 64 | +[67131]: https://github.com/rust-lang/rust/pull/67131/ |
| 65 | +[67233]: https://github.com/rust-lang/rust/pull/67233/ |
| 66 | +[66899]: https://github.com/rust-lang/rust/pull/66899/ |
| 67 | +[66919]: https://github.com/rust-lang/rust/pull/66919/ |
| 68 | +[66254]: https://github.com/rust-lang/rust/pull/66254/ |
| 69 | +[`DebugMap::key`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.key |
| 70 | +[`DebugMap::value`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.value |
| 71 | +[`ManuallyDrop::take`]: https://doc.rust-lang.org/stable/std/mem/struct.ManuallyDrop.html#method.take |
| 72 | +[`matches!`]: https://doc.rust-lang.org/stable/std/macro.matches.html |
| 73 | +[`ptr::slice_from_raw_parts_mut`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts_mut.html |
| 74 | +[`ptr::slice_from_raw_parts`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts.html |
| 75 | +[`wait_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_while |
| 76 | + |
| 77 | + |
1 | 78 | Version 1.41.0 (2020-01-30)
|
2 | 79 | ===========================
|
3 | 80 |
|
|
0 commit comments