Skip to content
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

Merged
merged 7 commits into from
Nov 19, 2017
Merged

Updated Release notes for 1.22.0 #45454

merged 7 commits into from
Nov 19, 2017

Conversation

XAMPPRocky
Copy link
Member

@rust-highfive
Copy link
Collaborator

r? @alexcrichton

(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]
Copy link
Member

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.
Copy link
Member

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]
Copy link
Member

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`.
Copy link
Member

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.

Copy link
Member

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)

Copy link
Member

@frewsxcv frewsxcv left a 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
Copy link
Member

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

@kennytm kennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 23, 2017
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
Copy link
Member

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]
Copy link
Member

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.

@kennytm
Copy link
Member

kennytm commented Oct 23, 2017

Unfortunately due to robot misbehavior, the PRs involved in #44936 are not marked as "merged" on GitHub. In particular this includes #44287, which stabilized T += &T for numeric types, that I think should be included in the release note.

There is also #44456, which stabilized drop_types_in_const (rust-lang/rfcs#1817), marked as "since 1.22.0" in the source code.

@alexcrichton
Copy link
Member

Thanks so much for doing this again @Aaronepower!

Libraries
---------
- [Allow atomic operations up to 32 bits
on `armv5te_unknown_linux_gnueabi`][44978]
Copy link
Member

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?

Copy link
Member Author

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?

Copy link
Member

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]
Copy link
Member

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]
Copy link
Member

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.
Copy link
Member

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?

Copy link
Member

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?

Copy link
Member

@bluss bluss Oct 28, 2017

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.

Copy link
Member

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?

Copy link
Contributor

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?

Copy link
Member

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

Copy link
Member Author

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?

Copy link
Contributor

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.

Copy link
Member

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.

@bluss
Copy link
Member

bluss commented Oct 28, 2017

I think this is new in beta: Option<T> implements the Try trait, and it's stable to use with the ? operator in beta. #42526

@XAMPPRocky
Copy link
Member Author

@bluss Do you know where the PR that stabilised it is?

@bluss
Copy link
Member

bluss commented Oct 28, 2017

it's a trait impl, so it's the one

@XAMPPRocky
Copy link
Member Author

@bluss Why do the tests have a feature attribute for use then? https://github.com/rust-lang/rust/pull/42526/files#diff-6febfa0310e72467e28d435a668df56fR11

@bluss
Copy link
Member

bluss commented Oct 28, 2017

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?

@kennytm
Copy link
Member

kennytm commented Oct 28, 2017

@Aaronepower That's for the std::option::NoneError type which is gated behind the try_trait feature.

@kennytm
Copy link
Member

kennytm commented Oct 31, 2017

@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]
Copy link
Member

@kennytm kennytm Nov 4, 2017

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.

@kennytm
Copy link
Member

kennytm commented Nov 13, 2017

@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 x += y.

cc #45480.

@shepmaster
Copy link
Member

Ping from triage @alexcrichton — care to gaze deeply into the notes of future release?

@alexcrichton
Copy link
Member

Ok thanks @Aaronepower! I'm gona merge this as the release is now upcoming

@bors: r+

@bors
Copy link
Contributor

bors commented Nov 19, 2017

📌 Commit e0ac864 has been approved by alexcrichton

@kennytm kennytm added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 19, 2017
@bors
Copy link
Contributor

bors commented Nov 19, 2017

⌛ Testing commit e0ac864 with merge 5041b3b...

bors added a commit that referenced this pull request Nov 19, 2017
@bors
Copy link
Contributor

bors commented Nov 19, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 5041b3b to master...

@bors bors merged commit e0ac864 into rust-lang:master Nov 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.