Skip to content

Commit 529a8b8

Browse files
committed
---
yaml --- r: 142513 b: refs/heads/try2 c: b0a9d81 h: refs/heads/master i: 142511: c7ccc1c v: v3
1 parent 8499def commit 529a8b8

File tree

15 files changed

+15
-80
lines changed

15 files changed

+15
-80
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 2a8ae0eb4ae91d8695ea7e95e024f51ec19ef56a
8+
refs/heads/try2: b0a9d8193f121db8115a1010659ee46f7186b2d5
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ endif
139139

140140
# version-string calculation
141141
CFG_GIT_DIR := $(CFG_SRC_DIR).git
142-
CFG_RELEASE = 0.7
142+
CFG_RELEASE = 0.8-pre
143143
CFG_VERSION = $(CFG_RELEASE)
144144
# windows exe's need numeric versions - don't use anything but
145145
# numbers and dots here
146-
CFG_VERSION_WIN = 0.7
146+
CFG_VERSION_WIN = 0.8
147147

148148
ifneq ($(wildcard $(CFG_GIT)),)
149149
ifneq ($(wildcard $(CFG_GIT_DIR)),)

branches/try2/src/etc/kate/rust.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!ENTITY rustIdent "[a-zA-Z_][a-zA-Z_0-9]*">
88
<!ENTITY rustIntSuf "([iu](8|16|32|64)?)?">
99
]>
10-
<language name="Rust" version="0.7" kateversion="2.4" section="Sources" extensions="*.rs;*.rc" mimetype="text/x-rust" priority="15">
10+
<language name="Rust" version="0.8-pre" kateversion="2.4" section="Sources" extensions="*.rs;*.rc" mimetype="text/x-rust" priority="15">
1111
<highlighting>
1212
<list name="fn">
1313
<item> fn </item>

branches/try2/src/libextra/extra.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Rust extras are part of the standard Rust distribution.
2121
*/
2222

2323
#[link(name = "extra",
24-
vers = "0.7",
24+
vers = "0.8-pre",
2525
uuid = "122bed0b-c19b-4b82-b0b7-7ae8aead7297",
2626
url = "https://github.com/mozilla/rust/tree/master/src/libextra")];
2727

branches/try2/src/librust/rust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// FIXME #2238 Make run only accept source that emits an executable
1414

1515
#[link(name = "rust",
16-
vers = "0.7",
16+
vers = "0.8-pre",
1717
uuid = "4a24da33-5cc8-4037-9352-2cbe9bd9d27c",
1818
url = "https://github.com/mozilla/rust/tree/master/src/rust")];
1919

branches/try2/src/librustc/front/std_inject.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use syntax::codemap::dummy_sp;
1818
use syntax::codemap;
1919
use syntax::fold;
2020

21-
static STD_VERSION: &'static str = "0.7";
21+
static STD_VERSION: &'static str = "0.8-pre";
2222

2323
pub fn maybe_inject_libstd_ref(sess: Session, crate: @ast::crate)
2424
-> @ast::crate {

branches/try2/src/librustc/front/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ mod __test {
273273
*/
274274

275275
fn mk_std(cx: &TestCtxt) -> ast::view_item {
276-
let vers = ast::lit_str(@"0.7");
276+
let vers = ast::lit_str(@"0.8-pre");
277277
let vers = nospan(vers);
278278
let mi = ast::meta_name_value(@"vers", vers);
279279
let mi = nospan(mi);

branches/try2/src/librustc/rustc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
#[link(name = "rustc",
12-
vers = "0.7",
12+
vers = "0.8-pre",
1313
uuid = "0ce89b41-2f92-459e-bbc1-8f5fe32f16cf",
1414
url = "https://github.com/mozilla/rust/tree/master/src/rustc")];
1515

branches/try2/src/librustdoc/rustdoc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! Rustdoc - The Rust documentation generator
1212
1313
#[link(name = "rustdoc",
14-
vers = "0.7",
14+
vers = "0.8-pre",
1515
uuid = "f8abd014-b281-484d-a0c3-26e3de8e2412",
1616
url = "https://github.com/mozilla/rust/tree/master/src/rustdoc")];
1717

branches/try2/src/librusti/rusti.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
*/
4545

4646
#[link(name = "rusti",
47-
vers = "0.7",
47+
vers = "0.8-pre",
4848
uuid = "7fb5bf52-7d45-4fee-8325-5ad3311149fc",
4949
url = "https://github.com/mozilla/rust/tree/master/src/rusti")];
5050

branches/try2/src/librustpkg/rustpkg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// rustpkg - a package manager and build system for Rust
1212

1313
#[link(name = "rustpkg",
14-
vers = "0.7",
14+
vers = "0.8-pre",
1515
uuid = "25de5e6e-279e-4a20-845c-4cabae92daaf",
1616
url = "https://github.com/mozilla/rust/tree/master/src/librustpkg")];
1717

branches/try2/src/libstd/iterator.rs

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -245,25 +245,6 @@ pub trait IteratorUtil<A> {
245245
fn flat_map_<'r, B, U: Iterator<B>>(self, f: &'r fn(A) -> U)
246246
-> FlatMapIterator<'r, A, B, Self, U>;
247247

248-
/// Creates an iterator that calls a function with a reference to each
249-
/// element before yielding it. This is often useful for debugging an
250-
/// iterator pipeline.
251-
///
252-
/// # Example
253-
///
254-
/// ~~~ {.rust}
255-
///let xs = [1u, 4, 2, 3, 8, 9, 6];
256-
///let sum = xs.iter()
257-
/// .transform(|&x| x)
258-
/// .peek_(|&x| debug!("filtering %u", x))
259-
/// .filter(|&x| x % 2 == 0)
260-
/// .peek_(|&x| debug!("%u made it through", x))
261-
/// .sum();
262-
///println(sum.to_str());
263-
/// ~~~
264-
// FIXME: #5898: should be called `peek`
265-
fn peek_<'r>(self, f: &'r fn(&A)) -> PeekIterator<'r, A, Self>;
266-
267248
/// An adaptation of an external iterator to the for-loop protocol of rust.
268249
///
269250
/// # Example
@@ -461,12 +442,6 @@ impl<A, T: Iterator<A>> IteratorUtil<A> for T {
461442
FlatMapIterator{iter: self, f: f, subiter: None }
462443
}
463444

464-
// FIXME: #5898: should be called `peek`
465-
#[inline]
466-
fn peek_<'r>(self, f: &'r fn(&A)) -> PeekIterator<'r, A, T> {
467-
PeekIterator{iter: self, f: f}
468-
}
469-
470445
/// A shim implementing the `for` loop iteration protocol for iterator objects
471446
#[inline]
472447
fn advance(&mut self, f: &fn(A) -> bool) -> bool {
@@ -1066,32 +1041,6 @@ impl<'self, A, T: Iterator<A>, B, U: Iterator<B>> Iterator<B> for
10661041
}
10671042
}
10681043

1069-
/// An iterator that calls a function with a reference to each
1070-
/// element before yielding it.
1071-
pub struct PeekIterator<'self, A, T> {
1072-
priv iter: T,
1073-
priv f: &'self fn(&A)
1074-
}
1075-
1076-
impl<'self, A, T: Iterator<A>> Iterator<A> for PeekIterator<'self, A, T> {
1077-
#[inline]
1078-
fn next(&mut self) -> Option<A> {
1079-
let next = self.iter.next();
1080-
1081-
match next {
1082-
Some(ref a) => (self.f)(a),
1083-
None => ()
1084-
}
1085-
1086-
next
1087-
}
1088-
1089-
#[inline]
1090-
fn size_hint(&self) -> (uint, Option<uint>) {
1091-
self.iter.size_hint()
1092-
}
1093-
}
1094-
10951044
/// An iterator which just modifies the contained state throughout iteration.
10961045
pub struct UnfoldrIterator<'self, A, St> {
10971046
priv f: &'self fn(&mut St) -> Option<A>,
@@ -1287,20 +1236,6 @@ mod tests {
12871236
assert_eq!(i, ys.len());
12881237
}
12891238

1290-
#[test]
1291-
fn test_peek() {
1292-
let xs = [1u, 2, 3, 4];
1293-
let mut n = 0;
1294-
1295-
let ys = xs.iter()
1296-
.transform(|&x| x)
1297-
.peek_(|_| n += 1)
1298-
.collect::<~[uint]>();
1299-
1300-
assert_eq!(n, xs.len());
1301-
assert_eq!(xs, ys.as_slice());
1302-
}
1303-
13041239
#[test]
13051240
fn test_unfoldr() {
13061241
fn count(st: &mut uint) -> Option<uint> {

branches/try2/src/libstd/std.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ they contained the following prologue:
4949

5050

5151
#[link(name = "std",
52-
vers = "0.7",
52+
vers = "0.8-pre",
5353
uuid = "c70c24a7-5551-4f73-8e37-380b11d80be8",
5454
url = "https://github.com/mozilla/rust/tree/master/src/libstd")];
5555

branches/try2/src/libsyntax/syntax.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
#[link(name = "syntax",
17-
vers = "0.7",
17+
vers = "0.8-pre",
1818
uuid = "9311401b-d6ea-4cd9-a1d9-61f89499c645")];
1919

2020
#[license = "MIT/ASL2"];

branches/try2/src/test/run-pass/use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#[no_std];
1414
extern mod std;
1515
extern mod zed(name = "std");
16-
extern mod bar(name = "std", vers = "0.7");
16+
extern mod bar(name = "std", vers = "0.8-pre");
1717

1818

1919
use std::str;

0 commit comments

Comments
 (0)