Rust 1.80.0 pre-release testing

The 1.80.0 pre-release is ready for testing. The release is scheduled for July 25. 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/2024-07-21/index.html.

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

1 Like

Not a big issue, but I’m disappointed that diagnostic regression `declare_interior_mutable_const` now fires in macros where it is meant to be allowed · Issue #12951 · rust-lang/rust-clippy · GitHub hasn't been fixed and is going to hit stable in this release.

3 Likes

the code compile error:

#[derive(Debug, Clone, thiserror::Error)]
pub enum Error {
    #[error("error when converting {source:?} to {target:?}")]
    ConvertError {
        source: String,
        target: String,
    },
}

because of source on v1.80.0.

error[E0599]: the method `as_dyn_error` exists for reference `&String`, but its trait bounds were not satisfied
   --> src/error.rs:34:9
    |
34  |         source: String,
    |         ^^^^^^ method cannot be called on `&String` due to unsatisfied trait bounds

The Error trait’s source() method is implemented to return whichever field has a #[source] attribute or is named source , if any. This is for identifying the underlying lower level error that caused your error.

from thiserror's docs

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.