Skip to content

Commit f995d93

Browse files
committed
---
yaml --- r: 107649 b: refs/heads/dist-snap c: 1b4623d h: refs/heads/master i: 107647: 5eca07d v: v3
1 parent 6384e93 commit f995d93

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
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: b0ef2d56a8f33a139493f3b904b903693feb6118
9+
refs/heads/dist-snap: 1b4623d1dd15db9a99c318c243463a40214f0bd6
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`](green/struct.SchedPool.html) type. This type allows for
205+
encompassed in libgreen's [`SchedPool`][schedpool] 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: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,11 @@ 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();
205202
(*packet).abort_selection(false);
206203
(*packet).selecting.store(false, SeqCst);
207204
ready_index = i;
208205
ready_id = (*packet).selection_id;
209-
Err(task)
206+
Err((*packet).to_wake.take_unwrap())
210207
}
211208
});
212209

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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,16 @@ 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::local_data` - The interface to local data.
44+
* `std::task::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`
5152
* `std::comm`
53+
* `std::stackwalk`
5254
5355
*/
5456

0 commit comments

Comments
 (0)