diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-12-29 16:36:29 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-12-29 16:36:29 -0800 |
| commit | 9cbbfee8a4738663625e373f165b8ec5f6317ef4 (patch) | |
| tree | 7738cc422f972c8ce62ed56b7d77f4b284d01c5a /src/libsyntax/parse | |
| parent | 3385ff7757e8eb328c9fc10f3b1ee057bcb2fc2f (diff) | |
| parent | 1e89bbcb67020892bc0af5af218c35f0fd453fa4 (diff) | |
| download | rust-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.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))*/ } |
