Skip to content

Commit e60c3b3

Browse files
author
kud1ing
committed
---
yaml --- r: 58674 b: refs/heads/try c: 6487cb2 h: refs/heads/master v: v3
1 parent 0289b6f commit e60c3b3

Some content is hidden

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

106 files changed

+1591
-2043
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: c081ffbd1e845687202a975ea2e698b623e5722f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 213f7b24ccd9a6833af7e1a329c5e7ffc8f9e3d2
5-
refs/heads/try: 5714e2c11b939628247dd0107545e2feb8b74b47
5+
refs/heads/try: 6487cb221bcf7820a9d8458f18080c8f3ef1c2dc
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/doc/rust.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,8 +1467,8 @@ A complete list of the built-in language items follows:
14671467
: Elements can be subtracted.
14681468
`mul`
14691469
: Elements can be multiplied.
1470-
`div`
1471-
: Elements have a division operation.
1470+
`quot`
1471+
: Elements have a quotient operation.
14721472
`rem`
14731473
: Elements have a remainder operation.
14741474
`neg`
@@ -1857,7 +1857,7 @@ The default meaning of the operators on standard types is given here.
18571857
Calls the `mul` method on the `core::ops::Mul` trait.
18581858
`/`
18591859
: Quotient.
1860-
Calls the `div` method on the `core::ops::Div` trait.
1860+
Calls the `quot` method on the `core::ops::Quot` trait.
18611861
`%`
18621862
: Remainder.
18631863
Calls the `rem` method on the `core::ops::Rem` trait.
@@ -2393,7 +2393,7 @@ variables in the arm's block, and control enters the block.
23932393
An example of an `match` expression:
23942394

23952395

2396-
~~~~
2396+
~~~~ {.xfail-test}
23972397
# fn process_pair(a: int, b: int) { }
23982398
# fn process_ten() { }
23992399

branches/try/mk/clean.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ clean-misc:
4848
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
4949
$(Q)rm -Rf $(DOCS)
5050
$(Q)rm -Rf $(GENERATED)
51-
$(Q)rm -f tmp/*
51+
$(Q)rm -f tmp/*.log tmp/*.rc tmp/*.rs tmp/*.ok
5252
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
5353
$(Q)rm -Rf $(foreach ext, \
5454
html aux cp fn ky log pdf pg toc tp vr cps, \

branches/try/src/compiletest/header.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,14 @@ pub fn load_props(testfile: &Path) -> TestProps {
8282
}
8383

8484
pub fn is_test_ignored(config: config, testfile: &Path) -> bool {
85+
let mut found = false;
8586
for iter_header(testfile) |ln| {
8687
if parse_name_directive(ln, ~"xfail-test") { return true; }
8788
if parse_name_directive(ln, xfail_target()) { return true; }
8889
if config.mode == common::mode_pretty &&
8990
parse_name_directive(ln, ~"xfail-pretty") { return true; }
9091
};
91-
return false;
92+
return found;
9293

9394
fn xfail_target() -> ~str {
9495
~"xfail-" + str::from_slice(os::SYSNAME)

branches/try/src/compiletest/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ fn run_rpass_test(config: config, props: TestProps, testfile: &Path) {
106106
fatal_ProcRes(~"test run failed!", ProcRes);
107107
}
108108
} else {
109-
let ProcRes = jit_test(config, props, testfile);
109+
let mut ProcRes = jit_test(config, props, testfile);
110110
111111
if ProcRes.status != 0 { fatal_ProcRes(~"jit failed!", ProcRes); }
112112
}

branches/try/src/etc/unicode.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ def emit_decomp_module(f, canon, compat):
235235
rf = open(r, "w")
236236

237237
(canon_decomp, compat_decomp, gencats) = load_unicode_data("UnicodeData.txt")
238+
239+
# Explain that the source code was generated by this script.
240+
rf.write('// The following code was generated by "src/etc/unicode.py"\n\n')
241+
238242
emit_property_module(rf, "general_category", gencats)
239243

240244
#emit_decomp_module(rf, canon_decomp, compat_decomp)

branches/try/src/etc/ziggurat_tables.py

Lines changed: 0 additions & 121 deletions
This file was deleted.

branches/try/src/libcore/char.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
//! Utilities for manipulating the char type
1212
13-
#[cfg(notest)]
1413
use cmp::Ord;
1514
use option::{None, Option, Some};
1615
use str;

branches/try/src/libcore/core.rc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ they contained the following prologue:
6363
#[warn(vecs_implicitly_copyable)];
6464
#[deny(non_camel_case_types)];
6565
#[allow(deprecated_mutable_fields)];
66+
#[allow(deprecated_drop)];
6667

6768
// Make core testable by not duplicating lang items. See #2912
6869
#[cfg(test)] extern mod realcore(name = "core", vers = "0.7-pre");
@@ -77,7 +78,7 @@ pub use ops::{Drop};
7778
#[cfg(stage0)]
7879
pub use ops::{Add, Sub, Mul, Div, Modulo, Neg, Not};
7980
#[cfg(not(stage0))]
80-
pub use ops::{Add, Sub, Mul, Div, Rem, Neg, Not};
81+
pub use ops::{Add, Sub, Mul, Quot, Rem, Neg, Not};
8182
pub use ops::{BitAnd, BitOr, BitXor};
8283
pub use ops::{Shl, Shr, Index};
8384

branches/try/src/libcore/iter.rs

Lines changed: 0 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ much easier to implement.
4141
4242
*/
4343

44-
use cmp::Ord;
45-
use option::{Option, Some, None};
46-
4744
pub trait Times {
4845
fn times(&self, it: &fn() -> bool);
4946
}
@@ -107,78 +104,6 @@ pub fn all<T>(predicate: &fn(T) -> bool, iter: &fn(f: &fn(T) -> bool)) -> bool {
107104
true
108105
}
109106

110-
/**
111-
* Return the first element where `predicate` returns `true`. Return `None` if no element is found.
112-
*
113-
* # Example:
114-
*
115-
* ~~~~
116-
* let xs = ~[1u, 2, 3, 4, 5, 6];
117-
* assert_eq!(*find(|& &x: & &uint| x > 3, |f| xs.each(f)).unwrap(), 4);
118-
* ~~~~
119-
*/
120-
#[inline(always)]
121-
pub fn find<T>(predicate: &fn(&T) -> bool, iter: &fn(f: &fn(T) -> bool)) -> Option<T> {
122-
for iter |x| {
123-
if predicate(&x) {
124-
return Some(x);
125-
}
126-
}
127-
None
128-
}
129-
130-
/**
131-
* Return the largest item yielded by an iterator. Return `None` if the iterator is empty.
132-
*
133-
* # Example:
134-
*
135-
* ~~~~
136-
* let xs = ~[8, 2, 3, 1, -5, 9, 11, 15];
137-
* assert_eq!(max(|f| xs.each(f)).unwrap(), &15);
138-
* ~~~~
139-
*/
140-
#[inline]
141-
pub fn max<T: Ord>(iter: &fn(f: &fn(T) -> bool)) -> Option<T> {
142-
let mut result = None;
143-
for iter |x| {
144-
match result {
145-
Some(ref mut y) => {
146-
if x > *y {
147-
*y = x;
148-
}
149-
}
150-
None => result = Some(x)
151-
}
152-
}
153-
result
154-
}
155-
156-
/**
157-
* Return the smallest item yielded by an iterator. Return `None` if the iterator is empty.
158-
*
159-
* # Example:
160-
*
161-
* ~~~~
162-
* let xs = ~[8, 2, 3, 1, -5, 9, 11, 15];
163-
* assert_eq!(max(|f| xs.each(f)).unwrap(), &-5);
164-
* ~~~~
165-
*/
166-
#[inline]
167-
pub fn min<T: Ord>(iter: &fn(f: &fn(T) -> bool)) -> Option<T> {
168-
let mut result = None;
169-
for iter |x| {
170-
match result {
171-
Some(ref mut y) => {
172-
if x < *y {
173-
*y = x;
174-
}
175-
}
176-
None => result = Some(x)
177-
}
178-
}
179-
result
180-
}
181-
182107
#[cfg(test)]
183108
mod tests {
184109
use super::*;
@@ -203,22 +128,4 @@ mod tests {
203128
assert!(all(|x: uint| x < 6, |f| uint::range(1, 6, f)));
204129
assert!(!all(|x: uint| x < 5, |f| uint::range(1, 6, f)));
205130
}
206-
207-
#[test]
208-
fn test_find() {
209-
let xs = ~[1u, 2, 3, 4, 5, 6];
210-
assert_eq!(*find(|& &x: & &uint| x > 3, |f| xs.each(f)).unwrap(), 4);
211-
}
212-
213-
#[test]
214-
fn test_max() {
215-
let xs = ~[8, 2, 3, 1, -5, 9, 11, 15];
216-
assert_eq!(max(|f| xs.each(f)).unwrap(), &15);
217-
}
218-
219-
#[test]
220-
fn test_min() {
221-
let xs = ~[8, 2, 3, 1, -5, 9, 11, 15];
222-
assert_eq!(min(|f| xs.each(f)).unwrap(), &-5);
223-
}
224131
}

0 commit comments

Comments
 (0)