-
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
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
RELEASES.md
Outdated
on `armv5te_unknown_linux_gnueabi`][44978] | ||
- [`Box<Error>` now impls `Cow<str>`][44466] | ||
- [`std::mem::Discriminant` is now guarenteed to be `Send + Sync` if `T` | ||
is `Send + Sync`][45095] |
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.
Discriminant<T>
is now Send/Sync regardless of T. It's a bug fix, before it was never Send/Sync.
RELEASES.md
Outdated
- [`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 using | ||
const functions][43017] Still required for creating constant functions. |
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.
Maybe add a period and "It's"?
RELEASES.md
Outdated
|
||
Compiler | ||
-------- | ||
- [rustc now defaults to having 32 codegen units at debug][44853] |
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.
It got reduced to 16 in fact. On master, its also disabled on some targets, but the second PR didn't make it into beta.
- [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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
(the entry has been added since but github doesn't show that)
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.
nice work!👌
RELEASES.md
Outdated
-------- | ||
- [`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 using |
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.
'calling const functions' instead of 'using const functions' might be clearer here
RELEASES.md
Outdated
- [`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 |
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.
lower case "still"
RELEASES.md
Outdated
|
||
Compiler | ||
-------- | ||
- [rustc now defaults to having 16 codegen units at debug on supported platforms.][44853] |
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.
The link to 44853 is missing.
Unfortunately due to robot misbehavior, the PRs involved in #44936 are not marked as "merged" on GitHub. In particular this includes #44287, which stabilized There is also #44456, which stabilized |
Thanks so much for doing this again @Aaronepower! |
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 comment
The 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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine now. 🤷♂️
RELEASES.md
Outdated
- [Allow atomic operations up to 32 bits | ||
on `armv5te_unknown_linux_gnueabi`][44978] | ||
- [`Box<Error>` now impls `Cow<str>`][44466] | ||
- [`std::mem::Discriminant` is now guarenteed to be `Send + Sync`][45095] |
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.
*guaranteed
RELEASES.md
Outdated
--------- | ||
- [Allow atomic operations up to 32 bits | ||
on `armv5te_unknown_linux_gnueabi`][44978] | ||
- [`Box<Error>` now impls `Cow<str>`][44466] |
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.
A type doesn't implement another type -- it now implements From<Cow<str>>
- [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. |
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.
I think this is new in beta: |
@bluss Do you know where the PR that stabilised it is? |
it's a trait impl, so it's the one |
@bluss Why do the tests have a feature attribute for use then? https://github.com/rust-lang/rust/pull/42526/files#diff-6febfa0310e72467e28d435a668df56fR11 |
Short-circuiting with ? on option is stable in beta: https://play.rust-lang.org/?gist=8314fe5d499d96198d02726c95180fe0&version=beta I don't know, that link shows interaction like Option to Result conversion, maybe it's that? |
@Aaronepower That's for the |
@Aaronepower When #45656 is merged, please add a compatibility note that Android 2.3- is no longer supported, the minimum would be Android 4.0+. Thanks! |
|
||
Misc | ||
---- | ||
- [`libbacktrace` is now available on Apple platforms.][44251] |
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 Please delete this line after #45760 is backported to beta. This feature is being reverted because it is found to be causing segfault (#45731).
Never mind, a fix without reverting was found.
@Aaronepower Just wanna note that #44287 (mentioned in #45454 (comment)) is still not listed in the release note. This needs a compatibility warning as this will break inference involving cc #45480. |
Ping from triage @alexcrichton — care to gaze deeply into the notes of future release? |
Ok thanks @Aaronepower! I'm gona merge this as the release is now upcoming @bors: r+ |
📌 Commit e0ac864 has been approved by |
Updated Release notes for 1.22.0 [rendered](https://github.com/Aaronepower/rust/blob/master/RELEASES.md)
☀️ Test successful - status-appveyor, status-travis |
rendered