Skip to content

Commit 4577514

Browse files
committed
---
yaml --- r: 64087 b: refs/heads/snap-stage3 c: 6e67701 h: refs/heads/master i: 64085: 1a418c0 64083: 546fc96 64079: e06296a v: v3
1 parent 6d049f1 commit 4577514

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
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: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 96ae000812079b284011571dc18fed0d1fb433d8
4+
refs/heads/snap-stage3: 6e67701ca862a4a8f79e713d2e52559f11824c19
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ pub mod consts {
11071107
pub static MAP_SHARED : c_int = 0x0001;
11081108
pub static MAP_PRIVATE : c_int = 0x0002;
11091109
pub static MAP_FIXED : c_int = 0x0010;
1110-
pub static MAP_ANON : c_int = 0x1000;
1110+
pub static MAP_ANON : c_int = 0x0020;
11111111

11121112
pub static MAP_FAILED : *c_void = -1 as *c_void;
11131113

@@ -1175,7 +1175,7 @@ pub mod consts {
11751175
pub static MAP_SHARED : c_int = 0x0001;
11761176
pub static MAP_PRIVATE : c_int = 0x0002;
11771177
pub static MAP_FIXED : c_int = 0x0010;
1178-
pub static MAP_ANON : c_int = 0x1000;
1178+
pub static MAP_ANON : c_int = 0x0020;
11791179

11801180
pub static MAP_FAILED : *c_void = -1 as *c_void;
11811181

@@ -1326,7 +1326,7 @@ pub mod consts {
13261326
pub static PROT_GROWSUP : c_int = 0x020000000;
13271327

13281328
pub static MAP_TYPE : c_int = 0x000f;
1329-
pub static MAP_ANONONYMOUS : c_int = 0x1000;
1329+
pub static MAP_ANONONYMOUS : c_int = 0x0020;
13301330
pub static MAP_32BIT : c_int = 0x0040;
13311331
pub static MAP_GROWSDOWN : c_int = 0x0100;
13321332
pub static MAP_DENYWRITE : c_int = 0x0800;
@@ -1349,7 +1349,7 @@ pub mod consts {
13491349
pub static PROT_GROWSUP : c_int = 0x020000000;
13501350

13511351
pub static MAP_TYPE : c_int = 0x000f;
1352-
pub static MAP_ANONONYMOUS : c_int = 0x1000;
1352+
pub static MAP_ANONONYMOUS : c_int = 0x0020;
13531353
pub static MAP_32BIT : c_int = 0x0040;
13541354
pub static MAP_GROWSDOWN : c_int = 0x0100;
13551355
pub static MAP_DENYWRITE : c_int = 0x0800;

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ impl<T> Option<T> {
161161

162162
/// Filters an optional value using given function.
163163
#[inline(always)]
164-
pub fn filtered(self, f: &fn(t: &T) -> bool) -> Option<T> {
164+
pub fn filtered<'a>(self, f: &fn(t: &'a T) -> bool) -> Option<T> {
165165
match self {
166166
Some(x) => if(f(&x)) {Some(x)} else {None},
167167
None => None
@@ -170,16 +170,10 @@ impl<T> Option<T> {
170170

171171
/// Maps a `some` value from one type to another by reference
172172
#[inline]
173-
pub fn map<'a, U>(&'a self, f: &fn(&'a T) -> U) -> Option<U> {
173+
pub fn map<'a, U>(&self, f: &fn(&'a T) -> U) -> Option<U> {
174174
match *self { Some(ref x) => Some(f(x)), None => None }
175175
}
176176

177-
/// Maps a `some` value from one type to another by a mutable reference
178-
#[inline]
179-
pub fn map_mut<'a, U>(&'a mut self, f: &fn(&'a mut T) -> U) -> Option<U> {
180-
match *self { Some(ref mut x) => Some(f(x)), None => None }
181-
}
182-
183177
/// As `map`, but consumes the option and gives `f` ownership to avoid
184178
/// copying.
185179
#[inline]

0 commit comments

Comments
 (0)