Skip to content

Commit 24bafec

Browse files
committed
---
yaml --- r: 173996 b: refs/heads/batch c: 31d232e h: refs/heads/master v: v3
1 parent a986215 commit 24bafec

File tree

317 files changed

+2149
-4578
lines changed

Some content is hidden

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

317 files changed

+2149
-4578
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: 451e134c180e88b06e3b747ed750e4901ca93721
32+
refs/heads/batch: 31d232e204a0dc11418b5b371e7865d153672fb8
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/batch/configure

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,10 @@ case $CFG_CPUTYPE in
448448
CFG_CPUTYPE=aarch64
449449
;;
450450

451+
powerpc)
452+
CFG_CPUTYPE=powerpc
453+
;;
454+
451455
x86_64 | x86-64 | x64 | amd64)
452456
CFG_CPUTYPE=x86_64
453457
;;
@@ -1004,7 +1008,7 @@ do
10041008
make_dir $t/rt/jemalloc
10051009
for i in \
10061010
isaac sync test \
1007-
arch/i386 arch/x86_64 arch/arm arch/aarch64 arch/mips
1011+
arch/i386 arch/x86_64 arch/arm arch/aarch64 arch/mips arch/powerpc
10081012
do
10091013
make_dir $t/rt/stage$s/$i
10101014
done
@@ -1169,7 +1173,7 @@ do
11691173

11701174
msg "configuring LLVM for $gnu_t"
11711175

1172-
LLVM_TARGETS="--enable-targets=x86,x86_64,arm,aarch64,mips"
1176+
LLVM_TARGETS="--enable-targets=x86,x86_64,arm,aarch64,mips,powerpc"
11731177
LLVM_BUILD="--build=$gnu_t"
11741178
LLVM_HOST="--host=$gnu_t"
11751179
LLVM_TARGET="--target=$gnu_t"

branches/batch/mk/docs.mk

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ DOCS := index intro tutorial complement-bugreport \
2929
complement-lang-faq complement-design-faq complement-project-faq \
3030
rustdoc reference
3131

32-
# Legacy guides, preserved for a while to reduce the number of 404s
33-
DOCS += guide-crates guide-error-handling guide-ffi guide-macros guide \
34-
guide-ownership guide-plugins guide-pointers guide-strings guide-tasks \
35-
guide-testing
36-
37-
3832
PDF_DOCS := reference
3933

4034
RUSTDOC_DEPS_reference := doc/full-toc.inc
@@ -283,6 +277,6 @@ compiler-docs: $(COMPILER_DOC_TARGETS)
283277

284278
trpl: doc/book/index.html
285279

286-
doc/book/index.html: $(RUSTBOOK_EXE) $(wildcard $(S)/src/doc/trpl/*.md) | doc/
280+
doc/book/index.html: $(RUSTBOOK_EXE) $(wildcard $(S)/src/doc/trpl/*.md)
287281
$(Q)rm -rf doc/book
288282
$(Q)$(RUSTBOOK) build $(S)src/doc/trpl doc/book

branches/batch/src/compiletest/header.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ pub struct TestProps {
4242
pub pretty_compare_only: bool,
4343
// Patterns which must not appear in the output of a cfail test.
4444
pub forbid_output: Vec<String>,
45+
// Ignore errors which originate from a command line span
46+
pub ignore_command_line: bool,
4547
}
4648

4749
// Load any test directives embedded in the file
@@ -60,6 +62,8 @@ pub fn load_props(testfile: &Path) -> TestProps {
6062
let mut pretty_mode = None;
6163
let mut pretty_compare_only = false;
6264
let mut forbid_output = Vec::new();
65+
let mut ignore_command_line = false;
66+
6367
iter_header(testfile, |ln| {
6468
match parse_error_pattern(ln) {
6569
Some(ep) => error_patterns.push(ep),
@@ -102,6 +106,10 @@ pub fn load_props(testfile: &Path) -> TestProps {
102106
pretty_compare_only = parse_pretty_compare_only(ln);
103107
}
104108

109+
if !ignore_command_line {
110+
ignore_command_line = parse_ignore_command_line(ln);
111+
}
112+
105113
match parse_aux_build(ln) {
106114
Some(ab) => { aux_builds.push(ab); }
107115
None => {}
@@ -140,6 +148,7 @@ pub fn load_props(testfile: &Path) -> TestProps {
140148
pretty_mode: pretty_mode.unwrap_or("normal".to_string()),
141149
pretty_compare_only: pretty_compare_only,
142150
forbid_output: forbid_output,
151+
ignore_command_line: ignore_command_line,
143152
}
144153
}
145154

@@ -291,6 +300,10 @@ fn parse_pretty_compare_only(line: &str) -> bool {
291300
parse_name_directive(line, "pretty-compare-only")
292301
}
293302

303+
fn parse_ignore_command_line(line: &str) -> bool {
304+
parse_name_directive(line, "ignore-command-line")
305+
}
306+
294307
fn parse_exec_env(line: &str) -> Option<(String, String)> {
295308
parse_name_value_directive(line, "exec-env").map(|nv| {
296309
// nv is either FOO or FOO=BAR

branches/batch/src/compiletest/runtest.rs

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn run_cfail_test(config: &Config, props: &TestProps, testfile: &Path) {
104104
if !props.error_patterns.is_empty() {
105105
fatal("both error pattern and expected errors specified");
106106
}
107-
check_expected_errors(expected_errors, testfile, &proc_res);
107+
check_expected_errors(props, expected_errors, testfile, &proc_res);
108108
} else {
109109
check_error_patterns(props, testfile, output_to_check.as_slice(), &proc_res);
110110
}
@@ -941,7 +941,8 @@ fn check_forbid_output(props: &TestProps,
941941
}
942942
}
943943

944-
fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
944+
fn check_expected_errors(props: &TestProps,
945+
expected_errors: Vec<errors::ExpectedError> ,
945946
testfile: &Path,
946947
proc_res: &ProcRes) {
947948

@@ -966,16 +967,6 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
966967
line.starts_with( prefix )
967968
}
968969

969-
// A multi-line error will have followup lines which will always
970-
// start with one of these strings.
971-
fn continuation( line: &str) -> bool {
972-
line.starts_with(" expected") ||
973-
line.starts_with(" found") ||
974-
// 1234
975-
// Should have 4 spaces: see issue 18946
976-
line.starts_with("(")
977-
}
978-
979970
// Scan and extract our error/warning messages,
980971
// which look like:
981972
// filename:line1:col1: line2:col2: *error:* msg
@@ -991,7 +982,7 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
991982
ee.kind,
992983
ee.msg,
993984
line);
994-
if (prefix_matches(line, prefixes[i].as_slice()) || continuation(line)) &&
985+
if prefix_matches(line, prefixes[i].as_slice()) &&
995986
line.contains(ee.kind.as_slice()) &&
996987
line.contains(ee.msg.as_slice()) {
997988
found_flags[i] = true;
@@ -1006,6 +997,11 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
1006997
was_expected = true;
1007998
}
1008999

1000+
if line.starts_with("<command line option>") &&
1001+
props.ignore_command_line {
1002+
was_expected = true;
1003+
}
1004+
10091005
if !was_expected && is_compiler_error_or_warning(line) {
10101006
fatal_proc_rec(format!("unexpected compiler error or warning: '{}'",
10111007
line).as_slice(),

branches/batch/src/doc/guide-crates.md

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

branches/batch/src/doc/guide-error-handling.md

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

branches/batch/src/doc/guide-ffi.md

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

branches/batch/src/doc/guide-macros.md

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

branches/batch/src/doc/guide-ownership.md

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

branches/batch/src/doc/guide-plugins.md

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

branches/batch/src/doc/guide-pointers.md

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

branches/batch/src/doc/guide-strings.md

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

branches/batch/src/doc/guide-tasks.md

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

branches/batch/src/doc/guide-testing.md

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

branches/batch/src/doc/guide-unsafe.md

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

branches/batch/src/doc/guide.md

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

branches/batch/src/doc/intro.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ use semver::Version;
106106
107107
fn main() {
108108
assert!(Version::parse("1.2.3") == Ok(Version {
109-
major: 1u64,
110-
minor: 2u64,
111-
patch: 3u64,
109+
major: 1u,
110+
minor: 2u,
111+
patch: 3u,
112112
pre: vec!(),
113113
build: vec!(),
114114
}));

0 commit comments

Comments
 (0)