Skip to content

Rename TaskRng to ThreadRng #20264

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

Merged
merged 1 commit into from
Dec 30, 2014
Merged

Rename TaskRng to ThreadRng #20264

merged 1 commit into from
Dec 30, 2014

Conversation

nagisa
Copy link
Member

@nagisa nagisa commented Dec 28, 2014

Since runtime is removed, rust has no tasks anymore and everything is moving
from being task-* to thread-*. Let’s rename TaskRng as well!

This is a breaking change. If a breaking change for consistency is not desired, feel free to close.

@rust-highfive
Copy link
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

Since runtime is removed, rust has no tasks anymore and everything is moving
from being task-* to thread-*. Let’s rename TaskRng as well!

* Rename TaskRng to ThreadRng
* Rename task_rng to thread_rng

[breaking-change]
@nagisa
Copy link
Member Author

nagisa commented Dec 28, 2014

re r? @huonw

Also renamed internal constants from TASK_RNG to THREAD_RNG.

@rust-highfive rust-highfive assigned huonw and unassigned alexcrichton Dec 28, 2014
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Dec 30, 2014
Since runtime is removed, rust has no tasks anymore and everything is moving
from being task-* to thread-*. Let’s rename TaskRng as well!

This is a breaking change. If a breaking change for consistency is not desired, feel free to close.
@bors bors merged commit 1e89bbc into rust-lang:master Dec 30, 2014
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.

5 participants