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

Upgrade CORE_MSRV to 1.82 and take advantage of some new features #7043

Draft
wants to merge 12 commits into
base: trunk
Choose a base branch
from

Conversation

ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Jan 31, 2025

Connections

With patches for bug 1945020 landing against mozilla-central, we should be ready to bump CORE_MSRV to Rust 1.82. Woot! 🙌🏻

Description

Title says all. 💪

Testing

CI and done.

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@ErichDonGubler ErichDonGubler added area: infrastructure Testing, building, coordinating issues kind: refactor Making existing function faster or nicer labels Jan 31, 2025
@ErichDonGubler ErichDonGubler self-assigned this Jan 31, 2025
@ErichDonGubler ErichDonGubler requested a review from a team as a code owner January 31, 2025 03:32
This was previously an `allow`-by-default warning in Clippy's `pedantic`
group, but with Rust 1.83 it was promoted to a `warn`-by-default member
of its `complexity` group.
`std::mem::{size,align}_of{,_val}` was added to `std::prelude` in Rust
1.80; see
[`rust`#123168](rust-lang/rust#123168).
naga/Cargo.toml Outdated Show resolved Hide resolved
@ErichDonGubler ErichDonGubler force-pushed the rust-lints-with-1.82 branch 2 times, most recently from cf11a20 to 50acbf9 Compare January 31, 2025 04:45
Weaken our dependence on the `once_cell` crate by using functionality
from `std` instead that was upstreamed from `once_cell`, this time with
what's available in Rust 1.80+.

It's not yet possible to eliminate this dependency entirely, but do what
we can for now.
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Looks good, but I think you're missing a few things - I would grep for 1.76 and see what comes up, as hal's toml, the Readme, and probably a few other places need to be updated.

@ErichDonGubler ErichDonGubler force-pushed the rust-lints-with-1.82 branch 3 times, most recently from ae62dc7 to d4b6538 Compare January 31, 2025 13:54
@ErichDonGubler
Copy link
Member Author

Looks good, but I think you're missing a few things - I would grep for 1.76 and see what comes up, as hal's toml, the Readme, and probably a few other places need to be updated.

👍🏻 AFAIK, I've taken care of all of these. The README points to CI configuration as a reference, so I don't think we need to worry about that particular case again.

@ErichDonGubler
Copy link
Member Author

Gonna demote to a draft, while I figure out how to get crap compiling.

@ErichDonGubler ErichDonGubler marked this pull request as draft January 31, 2025 13:56
@ErichDonGubler ErichDonGubler force-pushed the rust-lints-with-1.82 branch 2 times, most recently from 71f9c77 to 451e815 Compare January 31, 2025 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: infrastructure Testing, building, coordinating issues kind: refactor Making existing function faster or nicer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants