Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149095
b: refs/heads/try2
c: be3cbcb
h: refs/heads/master
i:
  149093: a9340c9
  149091: e6b1454
  149087: 6602083
v: v3
  • Loading branch information
bors committed Feb 11, 2014
1 parent 02431b7 commit d2dbeea
Show file tree
Hide file tree
Showing 561 changed files with 1,377 additions and 1,315 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
refs/heads/try2: c57faa2d8cbb256d9803920f4caae13e08b0c97b
refs/heads/try2: be3cbcb4314570cd974d349b92e761eaef5078fb
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Expand Down
3 changes: 2 additions & 1 deletion branches/try2/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ endif
# snapshot will be generated with a statically linked rustc so we only have to
# worry about the distribution of one file (with its native dynamic
# dependencies)
RUSTFLAGS_STAGE0 += -Z prefer-dynamic
#
# NOTE: after a snapshot (stage0), put this on stage0 as well
RUSTFLAGS_STAGE1 += -C prefer-dynamic

# platform-specific auto-configuration
Expand Down
5 changes: 3 additions & 2 deletions branches/try2/mk/crates.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
################################################################################

TARGET_CRATES := std extra green rustuv native flate arena glob term semver \
uuid serialize sync getopts collections fourcc
HOST_CRATES := syntax rustc rustdoc
uuid serialize sync getopts collections num
HOST_CRATES := syntax rustc rustdoc fourcc
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
TOOLS := compiletest rustdoc rustc

Expand All @@ -75,6 +75,7 @@ DEPS_sync := std
DEPS_getopts := std
DEPS_collections := std serialize
DEPS_fourcc := syntax std
DEPS_num := std extra

TOOL_DEPS_compiletest := extra green rustuv getopts
TOOL_DEPS_rustdoc := rustdoc green rustuv
Expand Down
2 changes: 1 addition & 1 deletion branches/try2/mk/tests.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ifdef TESTNAME
TESTARGS += $(TESTNAME)
endif

ifdef CHECK_XFAILS
ifdef CHECK_IGNORED
TESTARGS += --ignored
endif

Expand Down
2 changes: 1 addition & 1 deletion branches/try2/src/compiletest/compiletest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub fn parse_config(args: ~[~str]) -> config {
reqopt("", "stage-id", "the target-stage identifier", "stageN-TARGET"),
reqopt("", "mode", "which sort of compile tests to run",
"(compile-fail|run-fail|run-pass|pretty|debug-info)"),
optflag("", "ignored", "run tests marked as ignored / xfailed"),
optflag("", "ignored", "run tests marked as ignored"),
optopt("", "runtool", "supervisor program to run tests under \
(eg. emulator, valgrind)", "PROGRAM"),
optopt("", "rustcflags", "flags to pass to rustc", "FLAGS"),
Expand Down
16 changes: 8 additions & 8 deletions branches/try2/src/compiletest/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,19 @@ pub fn load_props(testfile: &Path) -> TestProps {
}

pub fn is_test_ignored(config: &config, testfile: &Path) -> bool {
fn xfail_target(config: &config) -> ~str {
~"xfail-" + util::get_os(config.target)
fn ignore_target(config: &config) -> ~str {
~"ignore-" + util::get_os(config.target)
}
fn xfail_stage(config: &config) -> ~str {
~"xfail-" + config.stage_id.split('-').next().unwrap()
fn ignore_stage(config: &config) -> ~str {
~"ignore-" + config.stage_id.split('-').next().unwrap()
}
let val = iter_header(testfile, |ln| {
if parse_name_directive(ln, "xfail-test") { false }
else if parse_name_directive(ln, xfail_target(config)) { false }
else if parse_name_directive(ln, xfail_stage(config)) { false }
if parse_name_directive(ln, "ignore-test") { false }
else if parse_name_directive(ln, ignore_target(config)) { false }
else if parse_name_directive(ln, ignore_stage(config)) { false }
else if config.mode == common::mode_pretty &&
parse_name_directive(ln, "xfail-pretty") { false }
parse_name_directive(ln, "ignore-pretty") { false }
else { true }
});

Expand Down
2 changes: 2 additions & 0 deletions branches/try2/src/doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ li {list-style-type: none; }
* [The Rust compiler, `librustc`](rustc/index.html)

* [The `arena` allocation library](arena/index.html)
* [The `num` arbitrary precision numerics library](num/index.html)
* [The `collections` library](collections/index.html)
* [The `flate` compression library](flate/index.html)
* [The `fourcc` four-character code library](fourcc/index.html)
* [The `getopts` argument parsing library](getopts/index.html)
* [The `glob` file path matching library](glob/index.html)
* [The `semver` version collation library](semver/index.html)
Expand Down
14 changes: 7 additions & 7 deletions branches/try2/src/doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -3021,12 +3021,12 @@ In Rust terminology, we need a way to refer to other crates.
For that, Rust offers you the `extern mod` declaration:

~~~
extern mod extra;
// extra ships with Rust, you'll find more details further down.
extern mod num;
// `num` ships with Rust (much like `extra`; more details further down).
fn main() {
// The rational number '1/2':
let one_half = ::extra::rational::Ratio::new(1, 2);
let one_half = ::num::rational::Ratio::new(1, 2);
}
~~~

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

~~~
extern mod extra;
extern mod num;
use farm::dog;
use extra::rational::Ratio;
use num::rational::Ratio;
mod farm {
pub fn dog() { println!("woof"); }
Expand Down Expand Up @@ -3219,9 +3219,9 @@ See the [API documentation][stddoc] for details.

## The extra library

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

[extra library]: extra/index.html

Expand Down
8 changes: 4 additions & 4 deletions branches/try2/src/etc/combine-tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2011-2013 The Rust Project Developers. See the COPYRIGHT
# Copyright 2011-2014 The Rust Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution and at
# http://rust-lang.org/COPYRIGHT.
#
Expand Down Expand Up @@ -36,9 +36,9 @@ def scrub(b):
t.startswith(".") or t.startswith("#") or t.startswith("~")):
f = codecs.open(os.path.join(run_pass, t), "r", "utf8")
s = f.read()
if not ("xfail-test" in s or
"xfail-fast" in s or
"xfail-win32" in s):
if not ("ignore-test" in s or
"ignore-fast" in s or
"ignore-win32" in s):
if not "pub fn main" in s and "fn main" in s:
print("Warning: no public entry point in " + t)
stage2_tests.append(t)
Expand Down
2 changes: 1 addition & 1 deletion branches/try2/src/etc/extract-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def extract_code_fragments(dest_dir, lines):
block.appendleft(OUTPUT_BLOCK_HEADER)

if "ignore" in tags:
block.appendleft("//xfail-test\n")
block.appendleft("//ignore-test\n")
elif "should_fail" in tags:
block.appendleft("//should-fail\n")

Expand Down
6 changes: 3 additions & 3 deletions branches/try2/src/etc/licenseck.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2013 The Rust Project Developers. See the COPYRIGHT
# Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution and at
# http://rust-lang.org/COPYRIGHT.
#
Expand Down Expand Up @@ -52,12 +52,12 @@ def check_license(name, contents):

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

# License check
boilerplate = contents[:500]
if (boilerplate.find(license1) == -1 or boilerplate.find(license2) == -1) and \
(boilerplate.find(license3) == -1 or boilerplate.find(license4) == -1):
return False
return True
return True
Loading

0 comments on commit d2dbeea

Please sign in to comment.