Skip to content

Comments

Edition 2024 prep: Escape r#gen and remove redundant ref#11922

Merged
konstin merged 1 commit intomainfrom
konsti/edition-2025-min
Mar 3, 2025
Merged

Edition 2024 prep: Escape r#gen and remove redundant ref#11922
konstin merged 1 commit intomainfrom
konsti/edition-2025-min

Conversation

@konstin
Copy link
Member

@konstin konstin commented Mar 3, 2025

Three edition 2021 compatible sets of changes in preparation for the edition 2025 split out from #11724.

In edition 2025, gen is a keyword, so we escape it as r#gen. ref and ref mut are not allowed anymore for &T and &mut T, so we remove them. cargo fmt now formats inside of macros, which the 2021 formatter doesn't undo.

Three edition 2021 compatible sets of changes in preparation for the edition 2025 split out from #11724.

In edition 2025, `gen` is a keyword, so we escape it as `r#gen`. `ref` and `ref mut` are not allowed anymore for `&T` and `&mut T`, so we remove them. `cargo fmt` now formats inside of macros, which the 2021 formatter doesn't undo.
@konstin konstin added the internal A refactor or improvement that is not user-facing label Mar 3, 2025
@konstin konstin enabled auto-merge (squash) March 3, 2025 11:05
@konstin konstin merged commit d712ff2 into main Mar 3, 2025
74 checks passed
@konstin konstin deleted the konsti/edition-2025-min branch March 3, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant