Skip to content

Commit 3975822

Browse files
committed
---
yaml --- r: 48735 b: refs/heads/snap-stage3 c: 19bb166 h: refs/heads/master i: 48733: e88f9e9 48731: 44550dd 48727: b8e3b3c 48719: a93b2ab 48703: 102cf45 v: v3
1 parent 1fb1b20 commit 3975822

File tree

5 files changed

+19
-17
lines changed

5 files changed

+19
-17
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 3bbcac322669cff3abde5be937cc4ec3860f3985
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: a49ccee68efc7ec05e882e5929669108f65f74fa
4+
refs/heads/snap-stage3: 19bb16650f385755312e7d2399ce14e8253d92fa
55
refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libcore/core.rc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Implicitly, all crates behave as if they included the following prologue:
5656

5757
// On Linux, link to the runtime with -lrt.
5858
#[cfg(target_os = "linux")]
59+
#[doc(hidden)]
5960
pub mod linkhack {
6061
#[link_args="-lrustrt -lrt"]
6162
#[link_args = "-lpthread"]
@@ -252,7 +253,7 @@ pub mod rt;
252253
// A curious inner-module that's not exported that contains the binding
253254
// 'core' so that macro-expanded references to core::error and such
254255
// can be resolved within libcore.
255-
#[doc(hidden)] // FIXME #3538
256+
#[doc(hidden)]
256257
pub mod core {
257258
#[cfg(stage0)]
258259
pub const error : u32 = 1_u32;

branches/snap-stage3/src/libcore/option.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use ops::Add;
4646
use kinds::Copy;
4747
use util;
4848
use num::Zero;
49-
use iter::{BaseIter, MutableIter};
49+
use iter::BaseIter;
5050

5151
#[cfg(test)] use ptr;
5252
#[cfg(test)] use str;
@@ -323,13 +323,6 @@ impl<T> BaseIter<T> for Option<T> {
323323
}
324324
}
325325
326-
impl<T> MutableIter<T> for Option<T> {
327-
#[inline(always)]
328-
fn each_mut(&mut self, f: &fn(&'self mut T) -> bool) {
329-
match *self { None => (), Some(ref mut t) => { f(t); } }
330-
}
331-
}
332-
333326
pub impl<T> Option<T> {
334327
/// Returns true if the option equals `none`
335328
#[inline(always)]

branches/snap-stage3/src/librustdoc/rustdoc.rc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ fn run(config: Config) {
116116
// Remove things marked doc(hidden)
117117
prune_hidden_pass::mk_pass(),
118118
// Remove things that are private
119-
// XXX enable this after 'export' is removed in favor of 'pub'
120-
// prune_private_pass::mk_pass(),
119+
prune_private_pass::mk_pass(),
121120
// Extract brief documentation from the full descriptions
122121
desc_to_brief_pass::mk_pass(),
123122
// Massage the text to remove extra indentation

branches/snap-stage3/src/libstd/treemap.rs

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pure fn lt<K: Ord + TotalOrd, V>(a: &TreeMap<K, V>,
7272
}
7373
};
7474

75-
a_len < b_len
75+
return a_len < b_len;
7676
}
7777

7878
impl<K: Ord + TotalOrd, V> Ord for TreeMap<K, V> {
@@ -694,13 +694,22 @@ fn remove<K: TotalOrd, V>(node: &mut Option<~TreeNode<K, V>>,
694694

695695
skew(save);
696696

697-
for save.right.each_mut |right| {
697+
match save.right {
698+
Some(ref mut right) => {
698699
skew(right);
699-
for right.right.each_mut |x| { skew(x) }
700+
match right.right {
701+
Some(ref mut x) => { skew(x) },
702+
None => ()
703+
}
704+
}
705+
None => ()
700706
}
701707

702708
split(save);
703-
for save.right.each_mut |x| { split(x) }
709+
match save.right {
710+
Some(ref mut x) => { split(x) },
711+
None => ()
712+
}
704713
}
705714

706715
return removed;
@@ -709,7 +718,7 @@ fn remove<K: TotalOrd, V>(node: &mut Option<~TreeNode<K, V>>,
709718
}
710719

711720
*node = None;
712-
true
721+
return true;
713722
}
714723

715724
#[cfg(test)]

0 commit comments

Comments
 (0)