Rust 1.61.0 prerelease testing

The 1.61.0 pre-release is ready for testing. The release is scheduled for this Thursday, May 19th. Release notes can be found here.

You can try it out locally by running:

RUSTUP_DIST_SERVER=https://dev-static.rust-lang.org rustup update stable

The index is https://dev-static.rust-lang.org/dist/2022-05-16/index.html. You can leave feedback on the internals thread.

The release team is also thinking about changes to our pre-release process: we'd love your feedback on this GitHub issue.

5 Likes

I ran tests in my project and found that cargo clippy gives a false positive clippy::needless_match whose suggestion incorrectly deletes the else of an if let Some(x) = y { Some(x) } else { /* substantial logic */ }. Looks like the fix https://github.com/rust-lang/rust-clippy/pull/8700 didn't make the release, and this will be a stable-to-stable regression if not cherrypicked.

5 Likes

I'm not sure if this is the right place to talk about it, but the "Stabilized APIs" section of the release notes uses *const T::method, *mut T::method, and [T]::method to refer to methods on pointers and slices. This doesn't match the syntax in real code, which is <*const T>::method, <*mut T>::method, and <[T]>::method. Is this discrepancy intentional? (Using angle brackets with <Type>::method is pretty rare, after all.)

That method syntax was pointed out and fixed in the pull request for the release notes, but I guess stable copied an earlier snapshot.

1 Like

Yes. We're likely to do a rebuild of artifacts for the clippy false positive, so I'll pull in an updated copy of the notes.

1 Like

A new dev-static release should now be out with the Clippy problem fixed -- we've moved the needless_match lint to Clippy's nursery group for the time being.

1 Like

New index: https://dev-static.rust-lang.org/dist/2022-05-18/index.html

1 Like