Skip to content

Commit dd3bdb0

Browse files
committed
---
yaml --- r: 107652 b: refs/heads/dist-snap c: 0f637eb h: refs/heads/master v: v3
1 parent 7ea0d14 commit dd3bdb0

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 988e4f0a1c2802921375271bdc19f03650c024d2
9+
refs/heads/dist-snap: 0f637ebd0634f0c8a96a5567d9eab82fc5a181c7
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/doc/guide-runtime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Some benefits of using libgreen are:
202202

203203
M:N threading is built upon the concept of a pool of M OS threads (which
204204
libgreen refers to as schedulers), able to run N Rust tasks. This abstraction is
205-
encompassed in libgreen's [`SchedPool`][schedpool] type. This type allows for
205+
encompassed in libgreen's [`SchedPool`](green/struct.SchedPool.html) type. This type allows for
206206
fine-grained control over the pool of schedulers which will be used to run Rust
207207
tasks.
208208

branches/dist-snap/src/libstd/comm/select.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,14 @@ impl Select {
199199
if (*packet).decrement() {
200200
Ok(())
201201
} else {
202+
// Empty to_wake first to avoid tripping an assertion in
203+
// abort_selection in the disconnected case.
204+
let task = (*packet).to_wake.take_unwrap();
202205
(*packet).abort_selection(false);
203206
(*packet).selecting.store(false, SeqCst);
204207
ready_index = i;
205208
ready_id = (*packet).selection_id;
206-
Err((*packet).to_wake.take_unwrap())
209+
Err(task)
207210
}
208211
});
209212

branches/dist-snap/src/libstd/iter.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ impl<'a, A, T: Iterator<A>> Peekable<A, T> {
13661366
/// Check whether peekable iterator is empty or not.
13671367
#[inline]
13681368
pub fn is_empty(&mut self) -> bool {
1369-
self.peek().is_some()
1369+
self.peek().is_none()
13701370
}
13711371
}
13721372

@@ -2936,6 +2936,7 @@ mod tests {
29362936
assert_eq!(ys, [5, 4, 3, 2, 1]);
29372937
}
29382938

2939+
#[test]
29392940
fn test_peekable_is_empty() {
29402941
let a = [1];
29412942
let mut it = a.iter().peekable();

branches/dist-snap/src/libstd/rt/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,14 @@ out of `rt` as development proceeds.
4141
Several modules in `core` are clients of `rt`:
4242
4343
* `std::task` - The user-facing interface to the Rust task model.
44-
* `std::task::local_data` - The interface to local data.
44+
* `std::local_data` - The interface to local data.
4545
* `std::gc` - The garbage collector.
4646
* `std::unstable::lang` - Miscellaneous lang items, some of which rely on `std::rt`.
4747
* `std::condition` - Uses local data.
4848
* `std::cleanup` - Local heap destruction.
4949
* `std::io` - In the future `std::io` will use an `rt` implementation.
5050
* `std::logging`
51-
* `std::pipes`
5251
* `std::comm`
53-
* `std::stackwalk`
5452
5553
*/
5654

0 commit comments

Comments
 (0)