-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Updated Release notes for 1.22.0 #45454
Changes from 6 commits
332759d
4fbf56c
045032a
7e25527
5a9d833
b93c95a
e0ac864
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,76 @@ | ||
Version 1.22.0 (2017-11-23) | ||
========================== | ||
|
||
Language | ||
-------- | ||
- [`non_snake_case` lint now allows extern no-mangle functions][44966] | ||
- [Now accepts underscores in unicode escapes][43716] | ||
- [`#![feature(const_fn)]` is now no longer required for | ||
calling const functions.][43017] It's still required for creating | ||
constant functions. | ||
|
||
Compiler | ||
-------- | ||
- [rustc now defaults to having 16 codegen units at debug on supported platforms.][45064] | ||
- [rustc will no longer inline in codegen units when compiling for debug][45075] | ||
This should decrease compile times for debug builds. | ||
- [strict memory alignment now enabled on ARMv6][45094] | ||
- [Remove support for the PNaCl target `le32-unknown-nacl`][45041] | ||
|
||
Libraries | ||
--------- | ||
- [Allow atomic operations up to 32 bits | ||
on `armv5te_unknown_linux_gnueabi`][44978] | ||
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. GitHub isn't rendering this link -- perhaps it can't be multiline? 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 can't replicate this. It's a working link for me. Are you getting still getting this? 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. Looks fine now. 🤷♂️ |
||
- [`Box<Error>` now impls `From<Cow<str>>`][44466] | ||
- [`std::mem::Discriminant` is now guaranteed to be `Send + Sync`][45095] | ||
- [`fs::copy` now returns the length of the main stream on NTFS.][44895] | ||
- [Properly detect overflow in `Instant += Duration`.][44220] | ||
- [impl `Hasher` for `{&mut Hasher, Box<Hasher>}`][44015] | ||
- [impl `fmt::Debug` for `SplitWhitespace`.][44303] | ||
|
||
Stabilized APIs | ||
--------------- | ||
|
||
Cargo | ||
----- | ||
- [Cargo will now build multi file examples in subdirectories of the `examples` | ||
folder that have a `main.rs` file.][cargo/4496] | ||
- [Changed `[root]` to `[package]` in `Cargo.lock`][cargo/4571] Packages with | ||
the old format will continue to work and can be updated with `cargo update`. | ||
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. Don't forget rust-lang/cargo#3992 which is IMO the most important addition to cargo in the current 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 entry has been added since but github doesn't show that) |
||
- [Now supports vendoring git repositories][cargo/3992] | ||
|
||
Misc | ||
---- | ||
- [`libbacktrace` is now available on Apple platforms.][44251] | ||
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.
Never mind, a fix without reverting was found. |
||
- [Stabilised the `compile_fail` attribute for code fences.][43949] This now | ||
lets you specify that a given code example will fail to compile. | ||
|
||
Compatibility Notes | ||
------------------- | ||
- [The minimum Android version that rustc can build for has been bumped to `4.0` from `2.3`][45656] | ||
|
||
[45075]: https://github.com/rust-lang/rust/pull/45075 | ||
[45094]: https://github.com/rust-lang/rust/pull/45094 | ||
[45095]: https://github.com/rust-lang/rust/pull/45095 | ||
[45064]: https://github.com/rust-lang/rust/pull/45064 | ||
[44895]: https://github.com/rust-lang/rust/pull/44895 | ||
[44966]: https://github.com/rust-lang/rust/pull/44966 | ||
[44978]: https://github.com/rust-lang/rust/pull/44978 | ||
[45041]: https://github.com/rust-lang/rust/pull/45041 | ||
[44466]: https://github.com/rust-lang/rust/pull/44466 | ||
[44220]: https://github.com/rust-lang/rust/pull/44220 | ||
[44251]: https://github.com/rust-lang/rust/pull/44251 | ||
[44303]: https://github.com/rust-lang/rust/pull/44303 | ||
[43949]: https://github.com/rust-lang/rust/pull/43949 | ||
[44015]: https://github.com/rust-lang/rust/pull/44015 | ||
[43716]: https://github.com/rust-lang/rust/pull/43716 | ||
[43017]: https://github.com/rust-lang/rust/pull/43017 | ||
[45656]: https://github.com/rust-lang/rust/pull/45656 | ||
[cargo/3992]: https://github.com/rust-lang/cargo/pull/3992 | ||
[cargo/4496]: https://github.com/rust-lang/cargo/pull/4496 | ||
[cargo/4571]: https://github.com/rust-lang/cargo/pull/4571 | ||
|
||
|
||
Version 1.21.0 (2017-10-12) | ||
========================== | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Individual const functions are still unstable one by one — is there any of them that are stable in Rust 1.22?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think
mem::size_of
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be amazing, but const size_of is not stabilized in current nighly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @durka Do you know any?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are none so far. We only put the infrastructure in place for doing them individually. I thought size_of was imminent though, what happened?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aaronepower Can we remove this line about const functions? Since it has no user-visible effect in Rust 1.22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bluss Well shouldn't it still be included since this is when it was stabilised?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's misleading about the current bullet point is you still need a feature gate for calling const fns, just a different one (in fact a different one per fn now). So you can't do anything on stable that you couldn't before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with durka here, it's nothing user-visible (unfortunately) for the Rust 1.22.0 release.