Skip to content

Edition 2024, MSRV 1.88#60

Merged
fredszaq merged 2 commits intomainfrom
edition-2024
Apr 16, 2026
Merged

Edition 2024, MSRV 1.88#60
fredszaq merged 2 commits intomainfrom
edition-2024

Conversation

@fredszaq
Copy link
Copy Markdown
Collaborator

Following #59, @carlocorradini pointed out that we were still using edition 2018.

Here is a bump to edition 2024, and actually Rust 1.88 to get if let chains !

  • use if let chains in CDrop for arrays
  • use &raw instead of core::ptr::addr_of! (cc @carlocorradini )
  • added unsafe {} blocks when actually doing unsafe things inside all unsafe fn bodies
  • removed ref in patterns that already implicitly borrow
  • use #[unsafe(no_mangle)] instread of #[no_mangle]
  • added compilation on 1.88 on the ci, lets try to be a bit more explicit from now on on the MSRV

@carlocorradini
Copy link
Copy Markdown
Contributor

Awesome 😎
Wow, the &raw is really cool.
I hadn’t seen it before!

@fredszaq fredszaq merged commit f103534 into main Apr 16, 2026
1 check passed
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.

2 participants