diff options
| author | bors <bors@rust-lang.org> | 2014-04-01 11:11:51 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-04-01 11:11:51 -0700 |
| commit | b71c02e512fcfe18ea7a5a8a99ac758b4fa564a6 (patch) | |
| tree | 7842aad2f7ad07256764e22d6ab2fad0b6f624ed /src/libstd/rt/task.rs | |
| parent | b8ef9fd9c9f642ce7b8aed82782a1ed745d08d64 (diff) | |
| parent | bc7a2d72a3fea324fa432de9b6ce6073302d3d8c (diff) | |
| download | rust-b71c02e512fcfe18ea7a5a8a99ac758b4fa564a6.tar.gz rust-b71c02e512fcfe18ea7a5a8a99ac758b4fa564a6.zip | |
auto merge of #13115 : huonw/rust/rand-errors, r=alexcrichton
move errno -> IoError converter into std, bubble up OSRng errors Also adds a general errno -> `~str` converter to `std::os`, and makes the failure messages for the things using `OSRng` (e.g. (transitively) the task-local RNG, meaning hashmap initialisation failures aren't such a black box).
Diffstat (limited to 'src/libstd/rt/task.rs')
| -rw-r--r-- | src/libstd/rt/task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs index d9700ea9980..0f90135512c 100644 --- a/src/libstd/rt/task.rs +++ b/src/libstd/rt/task.rs @@ -435,7 +435,7 @@ mod test { #[test] fn rng() { use rand::{StdRng, Rng}; - let mut r = StdRng::new(); + let mut r = StdRng::new().unwrap(); let _ = r.next_u32(); } |
