Skip to content

Commit 24bc51f

Browse files
committed
---
yaml --- r: 126951 b: refs/heads/snap-stage3 c: 4d8de63 h: refs/heads/master i: 126949: 2100983 126947: 5003d9d 126943: b94e0fe v: v3
1 parent a808923 commit 24bc51f

Some content is hidden

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

69 files changed

+750
-2472
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: 7be8f0af0393dcdb077c2f6b1653836fd3fba235
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 1b0dc6a3fc22b299152e7a29d98896cca7fd6fa2
4+
refs/heads/snap-stage3: 4d8de63fb3159dc31fc3c3f54c4a39794e694edf
55
refs/heads/try: 502e4c045236682e9728539dc0d2b3d0b237f55c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

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

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ pub struct TestProps {
3636
pub no_prefer_dynamic: bool,
3737
// Don't run --pretty expanded when running pretty printing tests
3838
pub no_pretty_expanded: bool,
39-
// Which pretty mode are we testing with, default to 'normal'
40-
pub pretty_mode: String,
41-
// Only compare pretty output and don't try compiling
42-
pub pretty_compare_only: bool,
4339
}
4440

4541
// Load any test directives embedded in the file
@@ -55,8 +51,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
5551
let mut check_stdout = false;
5652
let mut no_prefer_dynamic = false;
5753
let mut no_pretty_expanded = false;
58-
let mut pretty_mode = None;
59-
let mut pretty_compare_only = false;
6054
iter_header(testfile, |ln| {
6155
match parse_error_pattern(ln) {
6256
Some(ep) => error_patterns.push(ep),
@@ -91,14 +85,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
9185
no_pretty_expanded = parse_no_pretty_expanded(ln);
9286
}
9387

94-
if pretty_mode.is_none() {
95-
pretty_mode = parse_pretty_mode(ln);
96-
}
97-
98-
if !pretty_compare_only {
99-
pretty_compare_only = parse_pretty_compare_only(ln);
100-
}
101-
10288
match parse_aux_build(ln) {
10389
Some(ab) => { aux_builds.push(ab); }
10490
None => {}
@@ -129,8 +115,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
129115
check_stdout: check_stdout,
130116
no_prefer_dynamic: no_prefer_dynamic,
131117
no_pretty_expanded: no_pretty_expanded,
132-
pretty_mode: pretty_mode.unwrap_or("normal".to_string()),
133-
pretty_compare_only: pretty_compare_only
134118
}
135119
}
136120

@@ -221,14 +205,6 @@ fn parse_no_pretty_expanded(line: &str) -> bool {
221205
parse_name_directive(line, "no-pretty-expanded")
222206
}
223207

224-
fn parse_pretty_mode(line: &str) -> Option<String> {
225-
parse_name_value_directive(line, "pretty-mode")
226-
}
227-
228-
fn parse_pretty_compare_only(line: &str) -> bool {
229-
parse_name_directive(line, "pretty-compare-only")
230-
}
231-
232208
fn parse_exec_env(line: &str) -> Option<(String, String)> {
233209
parse_name_value_directive(line, "exec-env").map(|nv| {
234210
// nv is either FOO or FOO=BAR

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ fn run_pretty_test(config: &Config, props: &TestProps, testfile: &Path) {
168168
props,
169169
testfile,
170170
srcs[round].to_string(),
171-
props.pretty_mode.as_slice());
171+
"normal");
172172

173173
if !proc_res.status.success() {
174174
fatal_proc_rec(format!("pretty-printing failed in round {}",
@@ -200,9 +200,6 @@ fn run_pretty_test(config: &Config, props: &TestProps, testfile: &Path) {
200200

201201
compare_source(expected.as_slice(), actual.as_slice());
202202

203-
// If we're only making sure that the output matches then just stop here
204-
if props.pretty_compare_only { return; }
205-
206203
// Finally, let's make sure it actually appears to remain valid code
207204
let proc_res = typecheck_source(config, props, testfile, actual);
208205

0 commit comments

Comments
 (0)