Skip to content

release blog post for Rust 1.46.0 #675

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

Merged
merged 9 commits into from
Aug 27, 2020

Conversation

steveklabnik
Copy link
Member

r? @rust-lang/core @rust-lang/release

@steveklabnik steveklabnik requested a review from a team August 22, 2020 13:19
@CryZe
Copy link
Contributor

CryZe commented Aug 22, 2020

I think it's weird how the blog post is labeling this release as a fairly minor release despite const fn being insanely powerful now while before you couldn't do any control flow at all. If you compare this to the 1.45 release blog post, it labels the fairly minor soundness fixes to floating point casts (which affected close to no one) as big changes. Seems a bit off to me. Though I guess it's a smallish release in terms of new std APIs.

}
```

That's it!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you think we should also reiterate how this changes the output? or is that too much?

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 we should show only the changed output, rather than the code sample. There doesn't appear to be anything different about how this annotation is applied compared to existing annotations, so having a multi-line code diff seems mostly just confusing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...though an example that uses panic::Location might be helpful.

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 wanted to emphasize how simple this is to use, but if you wanted to come up with an example using Location, I'm not inherently opposed. I didn't show how the output was changed because we did that when it was added to unwrap.

@steveklabnik
Copy link
Member Author

@CryZe maybe I just don't appreciate the magnitude of the change; you're right that that's a big step up, I guess. I'll pump it up a bit :)

@rylev
Copy link
Member

rylev commented Aug 23, 2020

@steveklabnik if you're looking for an example of what the new const fn capabilities allow, we really needed this for WinRT-rs to computer type ids of generic types at compile time instead of at runtime. This led to the creation of const-sha1 for const computation of sha1 hashes. Computing something like sha1 in const functions was not possible in const functions until this release. This in turn led to a huge perf boost in WinRT-rs crate.

}
```

That's it!
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 we should show only the changed output, rather than the code sample. There doesn't appear to be anything different about how this annotation is applied compared to existing annotations, so having a multi-line code diff seems mostly just confusing.

}
```

That's it!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...though an example that uses panic::Location might be helpful.

@steveklabnik
Copy link
Member Author

Hey folks! thanks for all the feedback; especially around the const fn stuff. I had no idea! I've merged most of your suggestions, and made some improvements on my own. I wanted to do this yesterday but failed, sorry about that :(

The only major thing left is the track-caller stuff; I left my justification in the comments, but if @rust-lang/release prefers something else, please just make the changes; I don't feel strongly enough to actually block things.

Copy link
Member

@pietroalbini pietroalbini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is mostly fine, and I'm about to start the release process so there isn't much time to get a new example in. Approving.

@pietroalbini pietroalbini merged commit 1791033 into rust-lang:master Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.