Skip to content

Commit d2dbeea

Browse files
committed
---
yaml --- r: 149095 b: refs/heads/try2 c: be3cbcb h: refs/heads/master i: 149093: a9340c9 149091: e6b1454 149087: 6602083 v: v3
1 parent 02431b7 commit d2dbeea

File tree

561 files changed

+1377
-1315
lines changed

Some content is hidden

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

561 files changed

+1377
-1315
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: c57faa2d8cbb256d9803920f4caae13e08b0c97b
8+
refs/heads/try2: be3cbcb4314570cd974d349b92e761eaef5078fb
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ endif
140140
# snapshot will be generated with a statically linked rustc so we only have to
141141
# worry about the distribution of one file (with its native dynamic
142142
# dependencies)
143-
RUSTFLAGS_STAGE0 += -Z prefer-dynamic
143+
#
144+
# NOTE: after a snapshot (stage0), put this on stage0 as well
144145
RUSTFLAGS_STAGE1 += -C prefer-dynamic
145146

146147
# platform-specific auto-configuration

branches/try2/mk/crates.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
################################################################################
5151

5252
TARGET_CRATES := std extra green rustuv native flate arena glob term semver \
53-
uuid serialize sync getopts collections fourcc
54-
HOST_CRATES := syntax rustc rustdoc
53+
uuid serialize sync getopts collections num
54+
HOST_CRATES := syntax rustc rustdoc fourcc
5555
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5656
TOOLS := compiletest rustdoc rustc
5757

@@ -75,6 +75,7 @@ DEPS_sync := std
7575
DEPS_getopts := std
7676
DEPS_collections := std serialize
7777
DEPS_fourcc := syntax std
78+
DEPS_num := std extra
7879

7980
TOOL_DEPS_compiletest := extra green rustuv getopts
8081
TOOL_DEPS_rustdoc := rustdoc green rustuv

branches/try2/mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ifdef TESTNAME
3434
TESTARGS += $(TESTNAME)
3535
endif
3636

37-
ifdef CHECK_XFAILS
37+
ifdef CHECK_IGNORED
3838
TESTARGS += --ignored
3939
endif
4040

branches/try2/src/compiletest/compiletest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub fn parse_config(args: ~[~str]) -> config {
6161
reqopt("", "stage-id", "the target-stage identifier", "stageN-TARGET"),
6262
reqopt("", "mode", "which sort of compile tests to run",
6363
"(compile-fail|run-fail|run-pass|pretty|debug-info)"),
64-
optflag("", "ignored", "run tests marked as ignored / xfailed"),
64+
optflag("", "ignored", "run tests marked as ignored"),
6565
optopt("", "runtool", "supervisor program to run tests under \
6666
(eg. emulator, valgrind)", "PROGRAM"),
6767
optopt("", "rustcflags", "flags to pass to rustc", "FLAGS"),

branches/try2/src/compiletest/header.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,19 @@ pub fn load_props(testfile: &Path) -> TestProps {
9595
}
9696

9797
pub fn is_test_ignored(config: &config, testfile: &Path) -> bool {
98-
fn xfail_target(config: &config) -> ~str {
99-
~"xfail-" + util::get_os(config.target)
98+
fn ignore_target(config: &config) -> ~str {
99+
~"ignore-" + util::get_os(config.target)
100100
}
101-
fn xfail_stage(config: &config) -> ~str {
102-
~"xfail-" + config.stage_id.split('-').next().unwrap()
101+
fn ignore_stage(config: &config) -> ~str {
102+
~"ignore-" + config.stage_id.split('-').next().unwrap()
103103
}
104104
105105
let val = iter_header(testfile, |ln| {
106-
if parse_name_directive(ln, "xfail-test") { false }
107-
else if parse_name_directive(ln, xfail_target(config)) { false }
108-
else if parse_name_directive(ln, xfail_stage(config)) { false }
106+
if parse_name_directive(ln, "ignore-test") { false }
107+
else if parse_name_directive(ln, ignore_target(config)) { false }
108+
else if parse_name_directive(ln, ignore_stage(config)) { false }
109109
else if config.mode == common::mode_pretty &&
110-
parse_name_directive(ln, "xfail-pretty") { false }
110+
parse_name_directive(ln, "ignore-pretty") { false }
111111
else { true }
112112
});
113113

branches/try2/src/doc/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ li {list-style-type: none; }
3838
* [The Rust compiler, `librustc`](rustc/index.html)
3939

4040
* [The `arena` allocation library](arena/index.html)
41+
* [The `num` arbitrary precision numerics library](num/index.html)
4142
* [The `collections` library](collections/index.html)
4243
* [The `flate` compression library](flate/index.html)
44+
* [The `fourcc` four-character code library](fourcc/index.html)
4345
* [The `getopts` argument parsing library](getopts/index.html)
4446
* [The `glob` file path matching library](glob/index.html)
4547
* [The `semver` version collation library](semver/index.html)

branches/try2/src/doc/tutorial.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3021,12 +3021,12 @@ In Rust terminology, we need a way to refer to other crates.
30213021
For that, Rust offers you the `extern mod` declaration:
30223022

30233023
~~~
3024-
extern mod extra;
3025-
// extra ships with Rust, you'll find more details further down.
3024+
extern mod num;
3025+
// `num` ships with Rust (much like `extra`; more details further down).
30263026
30273027
fn main() {
30283028
// The rational number '1/2':
3029-
let one_half = ::extra::rational::Ratio::new(1, 2);
3029+
let one_half = ::num::rational::Ratio::new(1, 2);
30303030
}
30313031
~~~
30323032

@@ -3051,10 +3051,10 @@ of both `use` and local declarations.
30513051
Which can result in something like this:
30523052

30533053
~~~
3054-
extern mod extra;
3054+
extern mod num;
30553055
30563056
use farm::dog;
3057-
use extra::rational::Ratio;
3057+
use num::rational::Ratio;
30583058
30593059
mod farm {
30603060
pub fn dog() { println!("woof"); }
@@ -3219,9 +3219,9 @@ See the [API documentation][stddoc] for details.
32193219

32203220
## The extra library
32213221

3222-
Rust also ships with the [extra library], an accumulation of useful things,
3222+
Rust ships with crates such as the [extra library], an accumulation of useful things,
32233223
that are however not important enough to deserve a place in the standard
3224-
library. You can use them by linking to `extra` with an `extern mod extra;`.
3224+
library. You can link to a library such as `extra` with an `extern mod extra;`.
32253225

32263226
[extra library]: extra/index.html
32273227

branches/try2/src/etc/combine-tests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2011-2013 The Rust Project Developers. See the COPYRIGHT
1+
# Copyright 2011-2014 The Rust Project Developers. See the COPYRIGHT
22
# file at the top-level directory of this distribution and at
33
# http://rust-lang.org/COPYRIGHT.
44
#
@@ -36,9 +36,9 @@ def scrub(b):
3636
t.startswith(".") or t.startswith("#") or t.startswith("~")):
3737
f = codecs.open(os.path.join(run_pass, t), "r", "utf8")
3838
s = f.read()
39-
if not ("xfail-test" in s or
40-
"xfail-fast" in s or
41-
"xfail-win32" in s):
39+
if not ("ignore-test" in s or
40+
"ignore-fast" in s or
41+
"ignore-win32" in s):
4242
if not "pub fn main" in s and "fn main" in s:
4343
print("Warning: no public entry point in " + t)
4444
stage2_tests.append(t)

branches/try2/src/etc/extract-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def extract_code_fragments(dest_dir, lines):
9999
block.appendleft(OUTPUT_BLOCK_HEADER)
100100

101101
if "ignore" in tags:
102-
block.appendleft("//xfail-test\n")
102+
block.appendleft("//ignore-test\n")
103103
elif "should_fail" in tags:
104104
block.appendleft("//should-fail\n")
105105

branches/try2/src/etc/licenseck.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2013 The Rust Project Developers. See the COPYRIGHT
1+
# Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
22
# file at the top-level directory of this distribution and at
33
# http://rust-lang.org/COPYRIGHT.
44
#
@@ -52,12 +52,12 @@ def check_license(name, contents):
5252

5353
# Xfail check
5454
firstlineish = contents[:100]
55-
if firstlineish.find("xfail-license") != -1:
55+
if firstlineish.find("ignore-license") != -1:
5656
return True
5757

5858
# License check
5959
boilerplate = contents[:500]
6060
if (boilerplate.find(license1) == -1 or boilerplate.find(license2) == -1) and \
6161
(boilerplate.find(license3) == -1 or boilerplate.find(license4) == -1):
6262
return False
63-
return True
63+
return True

0 commit comments

Comments
 (0)