Skip to content

Commit c9adf1f

Browse files
committed
---
yaml --- r: 97783 b: refs/heads/snap-stage3 c: f0c554d h: refs/heads/master i: 97781: 374d3bb 97779: ded1225 97775: 3edc695 v: v3
1 parent 868e9e8 commit c9adf1f

File tree

9 files changed

+6
-58
lines changed

9 files changed

+6
-58
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 2ff358c062e9f4c31e0e34d0cd9179a9af363867
4+
refs/heads/snap-stage3: f0c554d0d87bd2c9e33c72d126f506716dd1b5d1
55
refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/mk/tests.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,10 +626,9 @@ CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3) := \
626626
--aux-base $$(S)src/test/auxiliary/ \
627627
--stage-id stage$(1)-$(2) \
628628
--target $(2) \
629-
--host $(3) \
630629
--adb-path=$(CFG_ADB) \
631630
--adb-test-dir=$(CFG_ADB_TEST_DIR) \
632-
--rustcflags "$(RUSTC_FLAGS_$(2)) $$(CTEST_RUSTC_FLAGS)" \
631+
--rustcflags "$(RUSTC_FLAGS_$(2)) $$(CTEST_RUSTC_FLAGS) --target=$(2)" \
633632
$$(CTEST_TESTARGS)
634633

635634
CTEST_DEPS_rpass_$(1)-T-$(2)-H-$(3) = $$(RPASS_TESTS)

branches/snap-stage3/src/compiletest/common.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ pub struct config {
8686
// Target system to be tested
8787
target: ~str,
8888

89-
// Host triple for the compiler being invoked
90-
host: ~str,
91-
9289
// Extra parameter to run adb on arm-linux-androideabi
9390
adb_path: ~str,
9491

branches/snap-stage3/src/compiletest/compiletest.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ pub fn parse_config(args: ~[~str]) -> config {
7373
"percent change in metrics to consider noise", "N"),
7474
optflag("", "jit", "run tests under the JIT"),
7575
optopt("", "target", "the target to build for", "TARGET"),
76-
optopt("", "host", "the host to build for", "HOST"),
7776
optopt("", "adb-path", "path to the android debugger", "PATH"),
7877
optopt("", "adb-test-dir", "path to tests for the android debugger", "PATH"),
7978
optopt("", "test-shard", "run shard A, of B shards, worth of the testsuite", "A.B"),
@@ -135,7 +134,6 @@ pub fn parse_config(args: ~[~str]) -> config {
135134
rustcflags: matches.opt_str("rustcflags"),
136135
jit: matches.opt_present("jit"),
137136
target: opt_str2(matches.opt_str("target")).to_str(),
138-
host: opt_str2(matches.opt_str("host")).to_str(),
139137
adb_path: opt_str2(matches.opt_str("adb-path")).to_str(),
140138
adb_test_dir:
141139
opt_str2(matches.opt_str("adb-test-dir")).to_str(),
@@ -169,7 +167,6 @@ pub fn log_config(config: &config) {
169167
logv(c, format!("rustcflags: {}", opt_str(&config.rustcflags)));
170168
logv(c, format!("jit: {}", config.jit));
171169
logv(c, format!("target: {}", config.target));
172-
logv(c, format!("host: {}", config.host));
173170
logv(c, format!("adb_path: {}", config.adb_path));
174171
logv(c, format!("adb_test_dir: {}", config.adb_test_dir));
175172
logv(c, format!("adb_device_status: {}", config.adb_device_status));

branches/snap-stage3/src/compiletest/header.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ pub struct TestProps {
2828
debugger_cmds: ~[~str],
2929
// Lines to check if they appear in the expected debugger output
3030
check_lines: ~[~str],
31-
// Flag to force a crate to be built with the host architecture
32-
force_host: bool,
3331
}
3432

3533
// Load any test directives embedded in the file
@@ -41,7 +39,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
4139
let mut pp_exact = None;
4240
let mut debugger_cmds = ~[];
4341
let mut check_lines = ~[];
44-
let mut force_host = false;
4542
iter_header(testfile, |ln| {
4643
match parse_error_pattern(ln) {
4744
Some(ep) => error_patterns.push(ep),
@@ -56,10 +53,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
5653
pp_exact = parse_pp_exact(ln, testfile);
5754
}
5855

59-
if !force_host {
60-
force_host = parse_force_host(ln);
61-
}
62-
6356
match parse_aux_build(ln) {
6457
Some(ab) => { aux_builds.push(ab); }
6558
None => {}
@@ -89,8 +82,7 @@ pub fn load_props(testfile: &Path) -> TestProps {
8982
aux_builds: aux_builds,
9083
exec_env: exec_env,
9184
debugger_cmds: debugger_cmds,
92-
check_lines: check_lines,
93-
force_host: force_host,
85+
check_lines: check_lines
9486
};
9587
}
9688

@@ -149,10 +141,6 @@ fn parse_check_line(line: &str) -> Option<~str> {
149141
parse_name_value_directive(line, ~"check")
150142
}
151143

152-
fn parse_force_host(line: &str) -> bool {
153-
parse_name_directive(line, "force-host")
154-
}
155-
156144
fn parse_exec_env(line: &str) -> Option<(~str, ~str)> {
157145
parse_name_value_directive(line, ~"exec-env").map(|nv| {
158146
// nv is either FOO or FOO=BAR

branches/snap-stage3/src/compiletest/runtest.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -691,9 +691,8 @@ fn compose_and_run_compiler(
691691

692692
for rel_ab in props.aux_builds.iter() {
693693
let abs_ab = config.aux_base.join(rel_ab.as_slice());
694-
let aux_props = load_props(&abs_ab);
695694
let aux_args =
696-
make_compile_args(config, &aux_props, ~[~"--lib"] + extra_link_args,
695+
make_compile_args(config, props, ~[~"--lib"] + extra_link_args,
697696
|a,b| make_lib_name(a, b, testfile), &abs_ab);
698697
let auxres = compose_and_run(config, &abs_ab, aux_args, ~[],
699698
config.compile_lib_path, None);
@@ -739,16 +738,10 @@ fn make_compile_args(config: &config,
739738
testfile: &Path)
740739
-> ProcArgs {
741740
let xform_file = xform(config, testfile);
742-
let target = if props.force_host {
743-
config.host.as_slice()
744-
} else {
745-
config.target.as_slice()
746-
};
747741
// FIXME (#9639): This needs to handle non-utf8 paths
748742
let mut args = ~[testfile.as_str().unwrap().to_owned(),
749743
~"-o", xform_file.as_str().unwrap().to_owned(),
750-
~"-L", config.build_base.as_str().unwrap().to_owned(),
751-
~"--target=" + target]
744+
~"-L", config.build_base.as_str().unwrap().to_owned()]
752745
+ extras;
753746
args.push_all_move(split_maybe_args(&config.rustcflags));
754747
args.push_all_move(split_maybe_args(&props.compile_flags));

branches/snap-stage3/src/libstd/trie.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,6 @@ impl<T> TrieMap<T> {
111111
self.root.each_reverse(f)
112112
}
113113

114-
/// Visit all keys in reverse order
115-
#[inline]
116-
pub fn each_key_reverse(&self, f: |&uint| -> bool) -> bool {
117-
self.each_reverse(|k, _| f(k))
118-
}
119-
120-
/// Visit all values in reverse order
121-
#[inline]
122-
pub fn each_value_reverse(&self, f: |&T| -> bool) -> bool {
123-
self.each_reverse(|_, v| f(v))
124-
}
125-
126114
/// Get an iterator over the key-value pairs in the map
127115
pub fn iter<'a>(&'a self) -> TrieMapIterator<'a, T> {
128116
TrieMapIterator {
@@ -328,7 +316,7 @@ impl TrieSet {
328316
/// Visit all values in reverse order
329317
#[inline]
330318
pub fn each_reverse(&self, f: |&uint| -> bool) -> bool {
331-
self.map.each_key_reverse(f)
319+
self.map.each_reverse(|k, _| f(k))
332320
}
333321

334322
/// Get an iterator over the values in the set

branches/snap-stage3/src/test/auxiliary/macro_crate_test.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// force-host
12-
1311
#[feature(globs, macro_registrar, macro_rules)];
1412

1513
extern mod syntax;

branches/snap-stage3/src/test/run-pass/phase-syntax-link-does-resolve.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,6 @@
1111
// aux-build:macro_crate_test.rs
1212
// xfail-stage1
1313
// xfail-fast
14-
// xfail-android
15-
// force-host
16-
17-
// You'll note that there's lots of directives above. This is a very particular
18-
// test in which we're both linking to a macro crate and loading macros from it.
19-
// This implies that both versions are the host architecture, meaning this test
20-
// must also be compiled with the host arch.
21-
//
22-
// Hence, xfail-stage1 because macros are unstable around there, xfail-fast
23-
// because this doesn't work with that test runner, xfail-android because it
24-
// can't run host binaries, and force-host to make this test build as the host
25-
// arch.
2614

2715
#[feature(phase)];
2816

0 commit comments

Comments
 (0)