about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-29 16:36:29 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-29 16:36:29 -0800
commit9cbbfee8a4738663625e373f165b8ec5f6317ef4 (patch)
tree7738cc422f972c8ce62ed56b7d77f4b284d01c5a /src/libsyntax/parse
parent3385ff7757e8eb328c9fc10f3b1ee057bcb2fc2f (diff)
parent1e89bbcb67020892bc0af5af218c35f0fd453fa4 (diff)
downloadrust-9cbbfee8a4738663625e373f165b8ec5f6317ef4.tar.gz
rust-9cbbfee8a4738663625e373f165b8ec5f6317ef4.zip
rollup merge of #20264: nagisa/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!

This is a breaking change. If a breaking change for consistency is not desired, feel free to close.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs2
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))*/
 }