-
-
Couldn't load subscription status.
- Fork 477
Rename Rng::gen to Rng::random
#1438
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Unfortunately it's going to conflict with #1439!
This anticipates `gen` being a keyword in Rust 2024. A deprecated alias for `Rng::gen` stays in place to make the transition easier. Fixes rust-random#1435.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Doing so allows us to upgrade Rust edition to 2024 and consume the change which allows to avoid a conflict of `Rng::gen` with the `gen` keyword by renaming it to `Rng::random` (rust-random/rand/pull/1438).
Fixes #1435.