diff options
| author | Steven Fackler <sfackler@gmail.com> | 2013-12-02 22:37:26 -0800 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2013-12-03 20:40:38 -0800 |
| commit | a243360401790476deea3d502f644783ed8d7563 (patch) | |
| tree | 68f3ddeab96c002723d404ccd0feacb09f42a578 /src/libstd/rt | |
| parent | 693ec73b9b6308833587dbb872297b267391f6f6 (diff) | |
| download | rust-a243360401790476deea3d502f644783ed8d7563.tar.gz rust-a243360401790476deea3d502f644783ed8d7563.zip | |
Move std::util::ignore to std::prelude::drop
It's a more fitting name for the most common use case of this function.
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/sched.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/rt/sched.rs b/src/libstd/rt/sched.rs index a231bea5e27..8c46a8eff39 100644 --- a/src/libstd/rt/sched.rs +++ b/src/libstd/rt/sched.rs @@ -1173,7 +1173,6 @@ mod test { use rt::sleeper_list::SleeperList; use rt::stack::StackPool; use rt::sched::{Shutdown, TaskFromFriend}; - use util; do run_in_bare_thread { stress_factor().times(|| { @@ -1205,7 +1204,7 @@ mod test { handle.send(TaskFromFriend(task)); handle.send(Shutdown); - util::ignore(handle); + drop(handle); thread.join(); }) |
