Skip to content

Commit 438db18

Browse files
committed
---
yaml --- r: 93615 b: refs/heads/try c: 681ea93 h: refs/heads/master i: 93613: f0b58ce 93611: 2613b77 93607: 566b3e0 93599: 4d5cd65 v: v3
1 parent 0691fad commit 438db18

File tree

86 files changed

+376
-248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+376
-248
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5-
refs/heads/try: c47986b6751400ef30fa165d0278ec3fa212d54d
5+
refs/heads/try: 681ea93d52dd74a5626b9b9d714dd264b0d7ebc7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
*.cps
3131
*.log
3232
*.pdf
33-
*.epub
3433
*.html
3534
*.pg
3635
*.toc

branches/try/mk/clean.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ clean-misc:
5353
$(Q)rm -Rf tmp/*
5454
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
5555
$(Q)rm -Rf $(foreach ext, \
56-
html aux cp fn ky log pdf pg toc tp vr cps epub, \
56+
html aux cp fn ky log pdf pg toc tp vr cps, \
5757
$(wildcard doc/*.$(ext)))
5858
$(Q)find doc/std doc/extra -mindepth 1 | xargs rm -Rf
5959
$(Q)rm -Rf doc/version.md

branches/try/mk/docs.mk

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,6 @@ doc/rust.tex: rust.md doc/version.md
6464
--from=markdown --to=latex \
6565
--output=$@
6666

67-
DOCS += doc/rust.epub
68-
doc/rust.epub: rust.md doc/version_info.html doc/rust.css doc/manual.inc
69-
@$(call E, pandoc: $@)
70-
$(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \
71-
"$(CFG_PANDOC)" \
72-
--standalone --toc \
73-
--section-divs \
74-
--number-sections \
75-
--from=markdown --to=epub \
76-
--css=rust.css --include-in-header=doc/manual.inc \
77-
--include-before-body=doc/version_info.html \
78-
--output=$@
79-
80-
8167
DOCS += doc/tutorial.tex
8268
doc/tutorial.tex: tutorial.md doc/version.md
8369
@$(call E, pandoc: $@)
@@ -112,17 +98,6 @@ doc/tutorial.html: tutorial.md doc/version_info.html doc/rust.css
11298
--include-before-body=doc/version_info.html \
11399
--output=$@
114100

115-
DOCS += doc/tutorial.epub
116-
doc/tutorial.epub: tutorial.md doc/version_info.html doc/rust.css
117-
@$(call E, pandoc: $@)
118-
$(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \
119-
$(CFG_PANDOC) --standalone --toc \
120-
--section-divs --number-sections \
121-
--from=markdown --to=epub --css=rust.css \
122-
--include-before-body=doc/version_info.html \
123-
--output=$@
124-
125-
126101
DOCS_L10N += doc/l10n/ja/tutorial.html
127102
doc/l10n/ja/tutorial.html: doc/l10n/ja/tutorial.md doc/version_info.html doc/rust.css
128103
@$(call E, pandoc: $@)

branches/try/src/libextra/getopts.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ pub struct Matches {
142142
}
143143

144144
/// The type returned when the command line does not conform to the
145-
/// expected format. Call the `to_err_msg` method to retrieve the
146-
/// error as a string.
145+
/// expected format. Pass this value to <fail_str> to get an error message.
147146
#[deriving(Clone, Eq, ToStr)]
148147
#[allow(missing_doc)]
149148
pub enum Fail_ {

branches/try/src/librustuv/addrinfo.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ mod test {
191191
use super::super::local_loop;
192192

193193
#[test]
194-
#[ignore(cfg(target_os="android"))] // cannot give tcp/ip permission without help of apk
195194
fn getaddrinfo_test() {
196195
match GetAddrInfoRequest::run(local_loop(), Some("localhost"), None, None) {
197196
Ok(infos) => {

branches/try/src/librustuv/pipe.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ mod tests {
251251
use super::super::local_loop;
252252

253253
#[test]
254-
#[ignore(cfg(windows))] // FIXME(#10386): how windows pipes work
255254
fn connect_err() {
256255
match PipeWatcher::connect(local_loop(), &"path/to/nowhere".to_c_str()) {
257256
Ok(*) => fail!(),
@@ -260,7 +259,6 @@ mod tests {
260259
}
261260

262261
#[test]
263-
#[ignore(cfg(windows))] // FIXME(#10386): how windows pipes work
264262
fn bind_err() {
265263
match PipeListener::bind(local_loop(), &"path/to/nowhere".to_c_str()) {
266264
Ok(*) => fail!(),
@@ -269,7 +267,6 @@ mod tests {
269267
}
270268

271269
#[test]
272-
#[ignore(cfg(windows))] // FIXME(#10386): how windows pipes work
273270
fn bind() {
274271
let p = next_test_unix().to_c_str();
275272
match PipeListener::bind(local_loop(), &p) {
@@ -279,15 +276,13 @@ mod tests {
279276
}
280277

281278
#[test] #[should_fail]
282-
#[ignore(cfg(windows))] // FIXME(#10386): how windows pipes work
283279
fn bind_fail() {
284280
let p = next_test_unix().to_c_str();
285281
let _w = PipeListener::bind(local_loop(), &p).unwrap();
286282
fail!();
287283
}
288284

289285
#[test]
290-
#[ignore(cfg(windows))] // FIXME(#10386): how windows pipes work
291286
fn connect() {
292287
let path = next_test_unix();
293288
let path2 = path.clone();
@@ -313,7 +308,6 @@ mod tests {
313308
}
314309

315310
#[test] #[should_fail]
316-
#[ignore(cfg(windows))] // FIXME(#10386): how windows pipes work
317311
fn connect_fail() {
318312
let path = next_test_unix();
319313
let path2 = path.clone();

branches/try/src/libstd/iter.rs

Lines changed: 8 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ the rest of the rust manuals.
6565
*/
6666

6767
use cmp;
68-
use num::{Zero, One, Integer, CheckedAdd, CheckedSub, Saturating, ToPrimitive};
68+
use num::{Zero, One, Integer, CheckedAdd, CheckedSub, Saturating};
6969
use option::{Option, Some, None};
7070
use ops::{Add, Mul, Sub};
7171
use cmp::{Eq, Ord};
@@ -1829,8 +1829,7 @@ pub fn range<A: Add<A, A> + Ord + Clone + One>(start: A, stop: A) -> Range<A> {
18291829
Range{state: start, stop: stop, one: One::one()}
18301830
}
18311831

1832-
// FIXME: #10414: Unfortunate type bound
1833-
impl<A: Add<A, A> + Ord + Clone + ToPrimitive> Iterator<A> for Range<A> {
1832+
impl<A: Add<A, A> + Ord + Clone> Iterator<A> for Range<A> {
18341833
#[inline]
18351834
fn next(&mut self) -> Option<A> {
18361835
if self.state < self.stop {
@@ -1842,42 +1841,13 @@ impl<A: Add<A, A> + Ord + Clone + ToPrimitive> Iterator<A> for Range<A> {
18421841
}
18431842
}
18441843

1845-
#[inline]
1846-
fn size_hint(&self) -> (uint, Option<uint>) {
1847-
// This first checks if the elements are representable as i64. If they aren't, try u64 (to
1848-
// handle cases like range(huge, huger)). We don't use uint/int because the difference of
1849-
// the i64/u64 might lie within their range.
1850-
let bound = match self.state.to_i64() {
1851-
Some(a) => {
1852-
let sz = self.stop.to_i64().map(|b| b.checked_sub(&a));
1853-
match sz {
1854-
Some(Some(bound)) => bound.to_uint(),
1855-
_ => None,
1856-
}
1857-
},
1858-
None => match self.state.to_u64() {
1859-
Some(a) => {
1860-
let sz = self.stop.to_u64().map(|b| b.checked_sub(&a));
1861-
match sz {
1862-
Some(Some(bound)) => bound.to_uint(),
1863-
_ => None
1864-
}
1865-
},
1866-
None => None
1867-
}
1868-
};
1869-
1870-
match bound {
1871-
Some(b) => (b, Some(b)),
1872-
// Standard fallback for unbounded/unrepresentable bounds
1873-
None => (0, None)
1874-
}
1875-
}
1844+
// FIXME: #8606 Implement size_hint() on Range
1845+
// Blocked on #8605 Need numeric trait for converting to `Option<uint>`
18761846
}
18771847

18781848
/// `Integer` is required to ensure the range will be the same regardless of
18791849
/// the direction it is consumed.
1880-
impl<A: Integer + Ord + Clone + ToPrimitive> DoubleEndedIterator<A> for Range<A> {
1850+
impl<A: Integer + Ord + Clone> DoubleEndedIterator<A> for Range<A> {
18811851
#[inline]
18821852
fn next_back(&mut self) -> Option<A> {
18831853
if self.stop > self.state {
@@ -1898,12 +1868,11 @@ pub struct RangeInclusive<A> {
18981868

18991869
/// Return an iterator over the range [start, stop]
19001870
#[inline]
1901-
pub fn range_inclusive<A: Add<A, A> + Ord + Clone + One + ToPrimitive>(start: A, stop: A)
1902-
-> RangeInclusive<A> {
1871+
pub fn range_inclusive<A: Add<A, A> + Ord + Clone + One>(start: A, stop: A) -> RangeInclusive<A> {
19031872
RangeInclusive{range: range(start, stop), done: false}
19041873
}
19051874

1906-
impl<A: Add<A, A> + Eq + Ord + Clone + ToPrimitive> Iterator<A> for RangeInclusive<A> {
1875+
impl<A: Add<A, A> + Eq + Ord + Clone> Iterator<A> for RangeInclusive<A> {
19071876
#[inline]
19081877
fn next(&mut self) -> Option<A> {
19091878
match self.range.next() {
@@ -1935,8 +1904,7 @@ impl<A: Add<A, A> + Eq + Ord + Clone + ToPrimitive> Iterator<A> for RangeInclusi
19351904
}
19361905
}
19371906

1938-
impl<A: Sub<A, A> + Integer + Ord + Clone + ToPrimitive> DoubleEndedIterator<A>
1939-
for RangeInclusive<A> {
1907+
impl<A: Sub<A, A> + Integer + Ord + Clone> DoubleEndedIterator<A> for RangeInclusive<A> {
19401908
#[inline]
19411909
fn next_back(&mut self) -> Option<A> {
19421910
if self.range.stop > self.range.state {
@@ -2216,7 +2184,6 @@ mod tests {
22162184

22172185
use cmp;
22182186
use uint;
2219-
use num;
22202187

22212188
#[test]
22222189
fn test_counter_from_iter() {
@@ -2834,51 +2801,12 @@ mod tests {
28342801

28352802
#[test]
28362803
fn test_range() {
2837-
/// A mock type to check Range when ToPrimitive returns None
2838-
struct Foo;
2839-
2840-
impl ToPrimitive for Foo {
2841-
fn to_i64(&self) -> Option<i64> { None }
2842-
fn to_u64(&self) -> Option<u64> { None }
2843-
}
2844-
2845-
impl Add<Foo, Foo> for Foo {
2846-
fn add(&self, _: &Foo) -> Foo {
2847-
Foo
2848-
}
2849-
}
2850-
2851-
impl Ord for Foo {
2852-
fn lt(&self, _: &Foo) -> bool {
2853-
false
2854-
}
2855-
}
2856-
2857-
impl Clone for Foo {
2858-
fn clone(&self) -> Foo {
2859-
Foo
2860-
}
2861-
}
2862-
2863-
impl num::One for Foo {
2864-
fn one() -> Foo {
2865-
Foo
2866-
}
2867-
}
2868-
28692804
assert_eq!(range(0i, 5).collect::<~[int]>(), ~[0i, 1, 2, 3, 4]);
2870-
assert_eq!(range(-10i, -1).collect::<~[int]>(), ~[-10, -9, -8, -7, -6, -5, -4, -3, -2]);
28712805
assert_eq!(range(0i, 5).invert().collect::<~[int]>(), ~[4, 3, 2, 1, 0]);
28722806
assert_eq!(range(200, -5).collect::<~[int]>(), ~[]);
28732807
assert_eq!(range(200, -5).invert().collect::<~[int]>(), ~[]);
28742808
assert_eq!(range(200, 200).collect::<~[int]>(), ~[]);
28752809
assert_eq!(range(200, 200).invert().collect::<~[int]>(), ~[]);
2876-
2877-
assert_eq!(range(0i, 100).size_hint(), (100, Some(100)));
2878-
// this test is only meaningful when sizeof uint < sizeof u64
2879-
assert_eq!(range(uint::max_value - 1, uint::max_value).size_hint(), (1, Some(1)));
2880-
assert_eq!(range(-10i, -1).size_hint(), (9, Some(9)));
2881-
assert_eq!(range(Foo, Foo).size_hint(), (0, None));
28822810
}
28832811

28842812
#[test]

0 commit comments

Comments
 (0)