diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2014-12-28 02:20:47 +0200 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2014-12-28 13:46:35 +0200 |
| commit | 1e89bbcb67020892bc0af5af218c35f0fd453fa4 (patch) | |
| tree | 7f76435dc4fb50ab581a1f3043f12e3d7f5abca7 /src/libsyntax/parse/token.rs | |
| parent | 0201334439393bed205c1148bed425b80aab8c22 (diff) | |
| download | rust-1e89bbcb67020892bc0af5af218c35f0fd453fa4.tar.gz rust-1e89bbcb67020892bc0af5af218c35f0fd453fa4.zip | |
Rename TaskRng to ThreadRng
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]
Diffstat (limited to 'src/libsyntax/parse/token.rs')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index f575d3d6c67..f22a4b5c6ed 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -724,7 +724,7 @@ pub fn fresh_name(src: &ast::Ident) -> ast::Name { // following: debug version. Could work in final except that it's incompatible with // good error messages and uses of struct names in ambiguous could-be-binding // locations. Also definitely destroys the guarantee given above about ptr_eq. - /*let num = rand::task_rng().gen_uint_range(0,0xffff); + /*let num = rand::thread_rng().gen_uint_range(0,0xffff); gensym(format!("{}_{}",ident_to_string(src),num))*/ } |
