|
| 1 | +Version 1.37.0 (2019-08-15) |
| 2 | +========================== |
| 3 | + |
| 4 | +Language |
| 5 | +-------- |
| 6 | +- `#[must_use]` will now warn if the type is contained in a [tuple][61100], |
| 7 | + [`Box`][62228], or an [array][62235] and unused. |
| 8 | +- [You can now use the `cfg` and `cfg_attr` attributes on |
| 9 | + generic parameters.][61547] |
| 10 | +- [You can now use enum variants through type alias.][61682] e.g. You can |
| 11 | + write the following: |
| 12 | + ```rust |
| 13 | + type MyOption = Option<u8>; |
| 14 | + |
| 15 | + fn increment_or_zero(x: MyOption) -> u8 { |
| 16 | + match x { |
| 17 | + MyOption::Some(y) => y + 1, |
| 18 | + MyOption::None => 0, |
| 19 | + } |
| 20 | + } |
| 21 | + ``` |
| 22 | +- [You can now use `_` as an identifier for consts.][61347] e.g. You can write |
| 23 | + `const _: u32 = 5;`. |
| 24 | +- [You can now use `#[repr(align(X)]` on enums.][61229] |
| 25 | +- [The `?`/_"Kleene"_ macro operator is now available in the |
| 26 | + 2015 edition.][60932] |
| 27 | + |
| 28 | +Compiler |
| 29 | +-------- |
| 30 | +- [You can now enable Profile-Guided Optimization with the `-C profile-generate` |
| 31 | + and `-C profile-use` flags.][61268] For more information on how to use profile |
| 32 | + guided optimization, please refer to the [rustc book][rustc-book-pgo]. |
| 33 | +- [The `rust-lldb` wrapper script should now work again.][61827] |
| 34 | + |
| 35 | +Libraries |
| 36 | +--------- |
| 37 | +- [`mem::MaybeUninit<T>` is now ABI-compatible with `T`.][61802] |
| 38 | + |
| 39 | +Stabilized APIs |
| 40 | +--------------- |
| 41 | +- [`BufReader::buffer`] |
| 42 | +- [`BufWriter::buffer`] |
| 43 | +- [`Cell::from_mut`] |
| 44 | +- [`Cell<[T]>::as_slice_of_cells`][`Cell<slice>::as_slice_of_cells`] |
| 45 | +- [`DoubleEndedIterator::nth_back`] |
| 46 | +- [`Option::xor`] |
| 47 | +- [`Wrapping::reverse_bits`] |
| 48 | +- [`i128::reverse_bits`] |
| 49 | +- [`i16::reverse_bits`] |
| 50 | +- [`i32::reverse_bits`] |
| 51 | +- [`i64::reverse_bits`] |
| 52 | +- [`i8::reverse_bits`] |
| 53 | +- [`isize::reverse_bits`] |
| 54 | +- [`slice::copy_within`] |
| 55 | +- [`u128::reverse_bits`] |
| 56 | +- [`u16::reverse_bits`] |
| 57 | +- [`u32::reverse_bits`] |
| 58 | +- [`u64::reverse_bits`] |
| 59 | +- [`u8::reverse_bits`] |
| 60 | +- [`usize::reverse_bits`] |
| 61 | + |
| 62 | +Cargo |
| 63 | +----- |
| 64 | +- [`Cargo.lock` files are now included by default when publishing executable crates |
| 65 | + with executables.][cargo/7026] |
| 66 | +- [You can now specify `default-run="foo"` in `[package]` to specify the |
| 67 | + default executable to use for `cargo run`.][cargo/7056] |
| 68 | + |
| 69 | +Misc |
| 70 | +---- |
| 71 | + |
| 72 | +Compatibility Notes |
| 73 | +------------------- |
| 74 | +- [Using `...` for inclusive range patterns will now warn by default.][61342] |
| 75 | + Please transition your code to using the `..=` syntax for inclusive |
| 76 | + ranges instead. |
| 77 | +- [Using a trait object without the `dyn` will now warn by default.][61203] |
| 78 | + Please transition your code to use `dyn Trait` for trait objects instead. |
| 79 | + |
| 80 | +[62228]: https://github.com/rust-lang/rust/pull/62228/ |
| 81 | +[62235]: https://github.com/rust-lang/rust/pull/62235/ |
| 82 | +[61802]: https://github.com/rust-lang/rust/pull/61802/ |
| 83 | +[61827]: https://github.com/rust-lang/rust/pull/61827/ |
| 84 | +[61547]: https://github.com/rust-lang/rust/pull/61547/ |
| 85 | +[61682]: https://github.com/rust-lang/rust/pull/61682/ |
| 86 | +[61268]: https://github.com/rust-lang/rust/pull/61268/ |
| 87 | +[61342]: https://github.com/rust-lang/rust/pull/61342/ |
| 88 | +[61347]: https://github.com/rust-lang/rust/pull/61347/ |
| 89 | +[61100]: https://github.com/rust-lang/rust/pull/61100/ |
| 90 | +[61203]: https://github.com/rust-lang/rust/pull/61203/ |
| 91 | +[61229]: https://github.com/rust-lang/rust/pull/61229/ |
| 92 | +[60932]: https://github.com/rust-lang/rust/pull/60932/ |
| 93 | +[cargo/7026]: https://github.com/rust-lang/cargo/pull/7026/ |
| 94 | +[cargo/7056]: https://github.com/rust-lang/cargo/pull/7056/ |
| 95 | +[`BufReader::buffer`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.buffer |
| 96 | +[`BufWriter::buffer`]: https://doc.rust-lang.org/std/io/struct.BufWriter.html#method.buffer |
| 97 | +[`Cell::from_mut`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.from_mut |
| 98 | +[`Cell<slice>::as_slice_of_cells`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_slice_of_cells |
| 99 | +[`DoubleEndedIterator::nth_back`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.nth_back |
| 100 | +[`Option::xor`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.xor |
| 101 | +[`RefCell::try_borrow_unguarded`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow_unguarded |
| 102 | +[`Wrapping::reverse_bits`]: https://doc.rust-lang.org/std/num/struct.Wrapping.html#method.reverse_bits |
| 103 | +[`i128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i128.html#method.reverse_bits |
| 104 | +[`i16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i16.html#method.reverse_bits |
| 105 | +[`i32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i32.html#method.reverse_bits |
| 106 | +[`i64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i64.html#method.reverse_bits |
| 107 | +[`i8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i8.html#method.reverse_bits |
| 108 | +[`isize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.isize.html#method.reverse_bits |
| 109 | +[`slice::copy_within`]: https://doc.rust-lang.org/std/primitive.slice.html#method.copy_within |
| 110 | +[`u128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u128.html#method.reverse_bits |
| 111 | +[`u16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u16.html#method.reverse_bits |
| 112 | +[`u32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u32.html#method.reverse_bits |
| 113 | +[`u64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u64.html#method.reverse_bits |
| 114 | +[`u8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u8.html#method.reverse_bits |
| 115 | +[`usize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.usize.html#method.reverse_bits |
| 116 | +[rustc-book-pgo]: https://doc.rust-lang.org/rustc/profile-guided-optimization.html |
| 117 | + |
| 118 | + |
1 | 119 | Version 1.36.0 (2019-07-04)
|
2 | 120 | ==========================
|
3 | 121 |
|
@@ -39,7 +157,7 @@ Stabilized APIs
|
39 | 157 | - [`mem::MaybeUninit`]
|
40 | 158 | - [`pointer::align_offset`]
|
41 | 159 | - [`future::Future`]
|
42 |
| -- [`task::Context`] |
| 160 | +- [`task::Context`] |
43 | 161 | - [`task::RawWaker`]
|
44 | 162 | - [`task::RawWakerVTable`]
|
45 | 163 | - [`task::Waker`]
|
|
0 commit comments