-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Updated RELEASES.md for 1.37.0 #62653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
d24927d
795a2fe
d505426
70685ef
b7a29c0
9994ca5
f2f4c0e
6b0f4c6
f695906
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,122 @@ | ||
Version 1.37.0 (2019-08-15) | ||
========================== | ||
|
||
Language | ||
-------- | ||
- [`#[must_use]` will now warn if the type is in a tuple and unused.][61100] | ||
- [`#[must_use]` will now warn if the type is in a `Box` and unused.][62228] | ||
- [`#[must_use]` will now warn if the type is in a array and unused.][62235] | ||
- [You can now use the `cfg` and `cfg_attr` attributes on | ||
generic parameters.][61547] | ||
- [You can now use enum variants through type alias.][61682] e.g. You can | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This arguably is the most important language change so I would put it first. Then I would mention consts, then Repr align. Also, I would use an example with Self here since that is likely the most common use. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that arbitrary reordering does not provide much benefit in the RELEASES.md document. This is really the point of the blog post to highlight specific features and guide a user through a new release. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reordering is not arbitrary, it's based on the relative importance of the features by estimating how many users will be affected and benefit from each one.
If so then we can dispense with examples in the release notes altogether. I think the blog post does a good job of talking in-depth about the most important bits but some users will read the release notes as well and we should use that opportunity wisely. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This would be important if the entire section was longer, but it isn't. It fits entirely on the page on all devices except mobile. Personally I find this to be pointless busy work, and I'm not going to do it. If you think it's that important feel free to make a separate PR. |
||
write the following. | ||
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
```rust | ||
type MyOption = Option<u8>; | ||
|
||
fn increment_or_zero(x: MyOption) -> u8 { | ||
match x { | ||
MyOption::Some(y) => y + 1, | ||
MyOption::None => 0, | ||
} | ||
} | ||
``` | ||
- [You can now use `_` as a identifier for consts.][61347] e.g. You can write | ||
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
`const _: u32 = 5;`. | ||
- [You can now use `#[repr(align)]` on enums.][61229] | ||
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- [The `?`/_"Kleene"_ macro operator is now available in the | ||
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
2015 edition.][60932] | ||
|
||
Compiler | ||
-------- | ||
- [You can now enable Profile-Guided Optimization with the `-C profile-generate` | ||
and `-C profile-use` flags.][61268] For more information on how to use profile | ||
guided optimization, please refer to the [rustc book](rustc-book-pgo). | ||
- [The `rust-lldb` wrapper script should now work again.][61827] | ||
|
||
Libraries | ||
--------- | ||
- [`mem::MaybeUninit` is now `#[repr(transparent)]`.][61802] | ||
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Stabilized APIs | ||
--------------- | ||
- [`BufReader::buffer`] | ||
- [`BufWriter::buffer`] | ||
- [`Cell::from_mut`] | ||
- [`Cell<T>::as_slice_of_cells`] | ||
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- [`DoubleEndedIterator::nth_back`] | ||
- [`Option::xor`] | ||
- [`Wrapping::reverse_bits`] | ||
- [`i128::reverse_bits`] | ||
- [`i16::reverse_bits`] | ||
- [`i32::reverse_bits`] | ||
- [`i64::reverse_bits`] | ||
- [`i8::reverse_bits`] | ||
- [`isize::reverse_bits`] | ||
- [`slice::copy_within`] | ||
- [`u128::reverse_bits`] | ||
- [`u16::reverse_bits`] | ||
- [`u32::reverse_bits`] | ||
- [`u64::reverse_bits`] | ||
- [`u8::reverse_bits`] | ||
- [`usize::reverse_bits`] | ||
|
||
Cargo | ||
----- | ||
- [`Cargo.lock` files are now included when publishing by default for crates | ||
XAMPPRocky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
with executables.][cargo/7026] | ||
- [You can now specify `default-run="foo"` in `[package]` to specify the | ||
default executable to use for `cargo run`.][cargo/7056] | ||
|
||
Misc | ||
---- | ||
|
||
Compatibility Notes | ||
------------------- | ||
- [Using `...` for inclusive range patterns will now warn by default.][61342] | ||
Please transition your code to using the `..=` syntax for inclusive | ||
ranges instead. | ||
- [Using a trait object without the `dyn` will now warn by default.][61203] | ||
Please transition your code to use `dyn Trait` for trait objects instead. | ||
|
||
[62228]: https://github.com/rust-lang/rust/pull/62228/ | ||
[62235]: https://github.com/rust-lang/rust/pull/62235/ | ||
[61802]: https://github.com/rust-lang/rust/pull/61802/ | ||
[61827]: https://github.com/rust-lang/rust/pull/61827/ | ||
[61547]: https://github.com/rust-lang/rust/pull/61547/ | ||
[61682]: https://github.com/rust-lang/rust/pull/61682/ | ||
[61268]: https://github.com/rust-lang/rust/pull/61268/ | ||
[61342]: https://github.com/rust-lang/rust/pull/61342/ | ||
[61347]: https://github.com/rust-lang/rust/pull/61347/ | ||
[61100]: https://github.com/rust-lang/rust/pull/61100/ | ||
[61203]: https://github.com/rust-lang/rust/pull/61203/ | ||
[61229]: https://github.com/rust-lang/rust/pull/61229/ | ||
[60932]: https://github.com/rust-lang/rust/pull/60932/ | ||
[cargo/7026]: https://github.com/rust-lang/cargo/pull/7026/ | ||
[cargo/7056]: https://github.com/rust-lang/cargo/pull/7056/ | ||
[`BufReader::buffer`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.buffer | ||
[`BufWriter::buffer`]: https://doc.rust-lang.org/std/io/struct.BufWriter.html#method.buffer | ||
[`Cell::from_mut`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.from_mut | ||
[`Cell<T>::as_slice_of_cells`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_slice_of_cells | ||
[`DoubleEndedIterator::nth_back`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.nth_back | ||
[`Option::xor`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.xor | ||
[`RefCell::try_borrow_unguarded`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow_unguarded | ||
[`Wrapping::reverse_bits`]: https://doc.rust-lang.org/std/num/struct.Wrapping.html#method.reverse_bits | ||
[`i128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i128.html#method.reverse_bits | ||
[`i16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i16.html#method.reverse_bits | ||
[`i32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i32.html#method.reverse_bits | ||
[`i64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i64.html#method.reverse_bits | ||
[`i8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i8.html#method.reverse_bits | ||
[`isize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.isize.html#method.reverse_bits | ||
[`slice::copy_within`]: https://doc.rust-lang.org/std/primitive.slice.html#method.copy_within | ||
[`u128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u128.html#method.reverse_bits | ||
[`u16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u16.html#method.reverse_bits | ||
[`u32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u32.html#method.reverse_bits | ||
[`u64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u64.html#method.reverse_bits | ||
[`u8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u8.html#method.reverse_bits | ||
[`usize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.usize.html#method.reverse_bits | ||
[rustc-book-pgo]: https://doc.rust-lang.org/rustc/profile-guided-optimization.html | ||
|
||
|
||
Version 1.36.0 (2019-07-04) | ||
========================== | ||
|
||
|
@@ -39,7 +158,7 @@ Stabilized APIs | |
- [`mem::MaybeUninit`] | ||
- [`pointer::align_offset`] | ||
- [`future::Future`] | ||
- [`task::Context`] | ||
- [`task::Context`] | ||
- [`task::RawWaker`] | ||
- [`task::RawWakerVTable`] | ||
- [`task::Waker`] | ||
|
Uh oh!
There was an error while loading. Please reload this page.