Skip to content

syntax: correct the Rand::rand call to select enum variants in #[deriving(Rand)]. #7121

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 3 commits into from

Conversation

huonw
Copy link
Member

@huonw huonw commented Jun 14, 2013

huonw added 3 commits June 14, 2013 11:12
…ving(Rand)].

Previously, this was not a global call, and so when `#[deriving(Rand)]`
was in any module other than the top-level one, it failed (unless there
was a `use std;` in scope).

Also, fix a minor inconsistency between uints and u32s for this piece
of code.
bors added a commit that referenced this pull request Jun 15, 2013
@bors bors closed this Jun 15, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 11, 2023
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 11, 2023
[missing_const_for_fn] fix rust-lang#7121

*Please write a short comment explaining your change (or "none" for internal only changes)*

changelog: [`missing_const_for_fn`] note about removing const may break compatibility

fix rust-lang#7121
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants