Skip to content

Commit 3ad9f23

Browse files
committed
---
yaml --- r: 171439 b: refs/heads/batch c: 6ccfd3f h: refs/heads/master i: 171437: ac18663 171435: 5e60fa8 171431: 6433e15 171423: 41a3e66 v: v3
1 parent ad6dfaf commit 3ad9f23

File tree

1,046 files changed

+13068
-16640
lines changed

Some content is hidden

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

1,046 files changed

+13068
-16640
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: 351e6b7255bbe43687c9275d63b99da3e8f5fe62
32+
refs/heads/batch: 6ccfd3f2c88a50a5123aef9d24d575a351f2b144
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 496dc4eae7de9d14cd49511a9acfbf5f11ae6c3f
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/batch/mk/docs.mk

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ RUSTDOC_HTML_OPTS_NO_CSS = --html-before-content=doc/version_info.html \
4949
RUSTDOC_HTML_OPTS = $(RUSTDOC_HTML_OPTS_NO_CSS) --markdown-css rust.css
5050

5151
PANDOC_BASE_OPTS := --standalone --toc --number-sections
52-
PANDOC_TEX_OPTS = $(PANDOC_BASE_OPTS) --include-before-body=doc/version.tex \
53-
--from=markdown --include-before-body=doc/footer.tex --to=latex
52+
PANDOC_TEX_OPTS = $(PANDOC_BASE_OPTS) --from=markdown --to=latex \
53+
--include-before-body=doc/version.tex \
54+
--include-before-body=doc/footer.tex \
55+
--include-in-header=doc/uptack.tex
5456
PANDOC_EPUB_OPTS = $(PANDOC_BASE_OPTS) --to=epub
5557

5658
# The rustdoc executable...
@@ -155,6 +157,9 @@ doc/footer.tex: $(D)/footer.inc | doc/
155157
@$(call E, pandoc: $@)
156158
$(CFG_PANDOC) --from=html --to=latex $< --output=$@
157159

160+
doc/uptack.tex: $(D)/uptack.tex | doc/
161+
$(Q)cp $< $@
162+
158163
# HTML (rustdoc)
159164
DOC_TARGETS += doc/not_found.html
160165
doc/not_found.html: $(D)/not_found.md $(HTML_DEPS) | doc/
@@ -180,7 +185,7 @@ doc/$(1).epub: $$(D)/$(1).md | doc/
180185

181186
# PDF (md =(pandoc)=> tex =(pdflatex)=> pdf)
182187
DOC_TARGETS += doc/$(1).tex
183-
doc/$(1).tex: $$(D)/$(1).md doc/footer.tex doc/version.tex | doc/
188+
doc/$(1).tex: $$(D)/$(1).md doc/uptack.tex doc/footer.tex doc/version.tex | doc/
184189
@$$(call E, pandoc: $$@)
185190
$$(CFG_PANDOC) $$(PANDOC_TEX_OPTS) $$< --output=$$@
186191

branches/batch/mk/main.mk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
######################################################################
1414

1515
# The version number
16-
CFG_RELEASE_NUM=0.13.0
16+
CFG_RELEASE_NUM=1.0.0
1717

1818
# An optional number to put after the label, e.g. '2' -> '-beta2'
1919
CFG_BETA_CYCLE=
@@ -29,14 +29,14 @@ endif
2929
ifeq ($(CFG_RELEASE_CHANNEL),beta)
3030
# The beta channel is temporarily called 'alpha'
3131
CFG_RELEASE=$(CFG_RELEASE_NUM)-alpha$(CFG_BETA_CYCLE)
32-
# When building beta/nightly distributables just reuse the same "beta"
33-
# name so when we upload we'll always override the previous
34-
# nighly. This doesn't actually impact the version reported by rustc -
35-
# it's just for file naming.
36-
CFG_PACKAGE_VERS=alpha
32+
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-alpha$(CFG_BETA_CYCLE)
3733
endif
3834
ifeq ($(CFG_RELEASE_CHANNEL),nightly)
3935
CFG_RELEASE=$(CFG_RELEASE_NUM)-nightly
36+
# When building nightly distributables just reuse the same "nightly" name
37+
# so when we upload we'll always override the previous nighly. This
38+
# doesn't actually impact the version reported by rustc - it's just
39+
# for file naming.
4040
CFG_PACKAGE_VERS=nightly
4141
endif
4242
ifeq ($(CFG_RELEASE_CHANNEL),dev)

branches/batch/src/compiletest/common.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ impl FromStr for Mode {
4343
}
4444
}
4545

46-
impl fmt::Show for Mode {
46+
impl fmt::String for Mode {
4747
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
48-
let msg = match *self {
48+
fmt::String::fmt(match *self {
4949
CompileFail => "compile-fail",
5050
RunFail => "run-fail",
5151
RunPass => "run-pass",
@@ -54,8 +54,13 @@ impl fmt::Show for Mode {
5454
DebugInfoGdb => "debuginfo-gdb",
5555
DebugInfoLldb => "debuginfo-lldb",
5656
Codegen => "codegen",
57-
};
58-
msg.fmt(f)
57+
}, f)
58+
}
59+
}
60+
61+
impl fmt::Show for Mode {
62+
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
63+
fmt::String::fmt(self, f)
5964
}
6065
}
6166

branches/batch/src/compiletest/compiletest.rs

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515

1616
extern crate test;
1717
extern crate getopts;
18-
#[phase(plugin, link)] extern crate log;
1918

19+
#[macro_use]
20+
extern crate log;
2021
extern crate regex;
2122

2223
use std::os;
@@ -101,7 +102,7 @@ pub fn parse_config(args: Vec<String> ) -> Config {
101102
let matches =
102103
&match getopts::getopts(args_.as_slice(), groups.as_slice()) {
103104
Ok(m) => m,
104-
Err(f) => panic!("{}", f)
105+
Err(f) => panic!("{:?}", f)
105106
};
106107

107108
if matches.opt_present("h") || matches.opt_present("help") {
@@ -120,7 +121,7 @@ pub fn parse_config(args: Vec<String> ) -> Config {
120121
match regex::Regex::new(s) {
121122
Ok(re) => Some(re),
122123
Err(e) => {
123-
println!("failed to parse filter /{}/: {}", s, e);
124+
println!("failed to parse filter /{}/: {:?}", s, e);
124125
panic!()
125126
}
126127
}
@@ -179,11 +180,11 @@ pub fn parse_config(args: Vec<String> ) -> Config {
179180
pub fn log_config(config: &Config) {
180181
let c = config;
181182
logv(c, format!("configuration:"));
182-
logv(c, format!("compile_lib_path: {}", config.compile_lib_path));
183-
logv(c, format!("run_lib_path: {}", config.run_lib_path));
184-
logv(c, format!("rustc_path: {}", config.rustc_path.display()));
185-
logv(c, format!("src_base: {}", config.src_base.display()));
186-
logv(c, format!("build_base: {}", config.build_base.display()));
183+
logv(c, format!("compile_lib_path: {:?}", config.compile_lib_path));
184+
logv(c, format!("run_lib_path: {:?}", config.run_lib_path));
185+
logv(c, format!("rustc_path: {:?}", config.rustc_path.display()));
186+
logv(c, format!("src_base: {:?}", config.src_base.display()));
187+
logv(c, format!("build_base: {:?}", config.build_base.display()));
187188
logv(c, format!("stage_id: {}", config.stage_id));
188189
logv(c, format!("mode: {}", config.mode));
189190
logv(c, format!("run_ignored: {}", config.run_ignored));
@@ -199,10 +200,10 @@ pub fn log_config(config: &Config) {
199200
logv(c, format!("jit: {}", config.jit));
200201
logv(c, format!("target: {}", config.target));
201202
logv(c, format!("host: {}", config.host));
202-
logv(c, format!("android-cross-path: {}",
203+
logv(c, format!("android-cross-path: {:?}",
203204
config.android_cross_path.display()));
204-
logv(c, format!("adb_path: {}", config.adb_path));
205-
logv(c, format!("adb_test_dir: {}", config.adb_test_dir));
205+
logv(c, format!("adb_path: {:?}", config.adb_path));
206+
logv(c, format!("adb_test_dir: {:?}", config.adb_test_dir));
206207
logv(c, format!("adb_device_status: {}",
207208
config.adb_device_status));
208209
match config.test_shard {
@@ -264,7 +265,7 @@ pub fn run_tests(config: &Config) {
264265
Ok(true) => {}
265266
Ok(false) => panic!("Some tests failed"),
266267
Err(e) => {
267-
println!("I/O failure during tests: {}", e);
268+
println!("I/O failure during tests: {:?}", e);
268269
}
269270
}
270271
}
@@ -292,13 +293,13 @@ pub fn test_opts(config: &Config) -> test::TestOpts {
292293
}
293294

294295
pub fn make_tests(config: &Config) -> Vec<test::TestDescAndFn> {
295-
debug!("making tests from {}",
296+
debug!("making tests from {:?}",
296297
config.src_base.display());
297298
let mut tests = Vec::new();
298299
let dirs = fs::readdir(&config.src_base).unwrap();
299300
for file in dirs.iter() {
300301
let file = file.clone();
301-
debug!("inspecting file {}", file.display());
302+
debug!("inspecting file {:?}", file.display());
302303
if is_test(config, &file) {
303304
let t = make_test(config, &file, || {
304305
match config.mode {

branches/batch/src/compiletest/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ fn parse_expected(last_nonfollow_error: Option<uint>,
8484
(which, line)
8585
};
8686

87-
debug!("line={} which={} kind={} msg={}", line_num, which, kind, msg);
87+
debug!("line={} which={:?} kind={:?} msg={:?}", line_num, which, kind, msg);
8888
Some((which, ExpectedError { line: line,
8989
kind: kind,
9090
msg: msg, }))

branches/batch/src/compiletest/runtest.rs

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub fn run_metrics(config: Config, testfile: String, mm: &mut MetricMap) {
6161
print!("\n\n");
6262
}
6363
let testfile = Path::new(testfile);
64-
debug!("running {}", testfile.display());
64+
debug!("running {:?}", testfile.display());
6565
let props = header::load_props(&testfile);
6666
debug!("loaded props");
6767
match config.mode {
@@ -141,7 +141,7 @@ fn check_correct_failure_status(proc_res: &ProcRes) {
141141
static RUST_ERR: int = 101;
142142
if !proc_res.status.matches_exit_status(RUST_ERR) {
143143
fatal_proc_rec(
144-
format!("failure produced the wrong error: {}",
144+
format!("failure produced the wrong error: {:?}",
145145
proc_res.status).as_slice(),
146146
proc_res);
147147
}
@@ -410,7 +410,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
410410
],
411411
vec!(("".to_string(), "".to_string())),
412412
Some("".to_string()))
413-
.expect(format!("failed to exec `{}`", config.adb_path).as_slice());
413+
.expect(format!("failed to exec `{:?}`", config.adb_path).as_slice());
414414

415415
procsrv::run("",
416416
config.adb_path.as_slice(),
@@ -422,7 +422,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
422422
],
423423
vec!(("".to_string(), "".to_string())),
424424
Some("".to_string()))
425-
.expect(format!("failed to exec `{}`", config.adb_path).as_slice());
425+
.expect(format!("failed to exec `{:?}`", config.adb_path).as_slice());
426426

427427
let adb_arg = format!("export LD_LIBRARY_PATH={}; \
428428
gdbserver :5039 {}/{}",
@@ -443,7 +443,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
443443
vec!(("".to_string(),
444444
"".to_string())),
445445
Some("".to_string()))
446-
.expect(format!("failed to exec `{}`", config.adb_path).as_slice());
446+
.expect(format!("failed to exec `{:?}`", config.adb_path).as_slice());
447447
loop {
448448
//waiting 1 second for gdbserver start
449449
timer::sleep(Duration::milliseconds(1000));
@@ -481,7 +481,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
481481
debugger_opts.as_slice(),
482482
vec!(("".to_string(), "".to_string())),
483483
None)
484-
.expect(format!("failed to exec `{}`", gdb_path).as_slice());
484+
.expect(format!("failed to exec `{:?}`", gdb_path).as_slice());
485485
let cmdline = {
486486
let cmdline = make_cmdline("",
487487
"arm-linux-androideabi-gdb",
@@ -539,18 +539,17 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
539539
script_str.push_str("set print pretty off\n");
540540

541541
// Add the pretty printer directory to GDB's source-file search path
542-
script_str.push_str(format!("directory {}\n", rust_pp_module_abs_path)[]);
542+
script_str.push_str(&format!("directory {}\n", rust_pp_module_abs_path)[]);
543543

544544
// Load the target executable
545-
script_str.push_str(format!("file {}\n",
546-
exe_file.as_str().unwrap().replace("\\", "\\\\"))
547-
.as_slice());
545+
script_str.push_str(&format!("file {}\n",
546+
exe_file.as_str().unwrap().replace("\\", "\\\\"))[]);
548547

549548
// Add line breakpoints
550549
for line in breakpoint_lines.iter() {
551-
script_str.push_str(format!("break '{}':{}\n",
552-
testfile.filename_display(),
553-
*line)[]);
550+
script_str.push_str(&format!("break '{:?}':{}\n",
551+
testfile.filename_display(),
552+
*line)[]);
554553
}
555554

556555
script_str.push_str(cmds.as_slice());
@@ -676,7 +675,7 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
676675
.unwrap()
677676
.to_string();
678677

679-
script_str.push_str(format!("command script import {}\n", rust_pp_module_abs_path[])[]);
678+
script_str.push_str(&format!("command script import {}\n", &rust_pp_module_abs_path[])[]);
680679
script_str.push_str("type summary add --no-value ");
681680
script_str.push_str("--python-function lldb_rust_formatters.print_val ");
682681
script_str.push_str("-x \".*\" --category Rust\n");
@@ -889,7 +888,7 @@ fn check_error_patterns(props: &TestProps,
889888
output_to_check: &str,
890889
proc_res: &ProcRes) {
891890
if props.error_patterns.is_empty() {
892-
fatal(format!("no error pattern specified in {}",
891+
fatal(format!("no error pattern specified in {:?}",
893892
testfile.display()).as_slice());
894893
}
895894
let mut next_err_idx = 0u;
@@ -910,7 +909,7 @@ fn check_error_patterns(props: &TestProps,
910909
if done { return; }
911910

912911
let missing_patterns =
913-
props.error_patterns[next_err_idx..];
912+
props.error_patterns.index(&(next_err_idx..));
914913
if missing_patterns.len() == 1u {
915914
fatal_proc_rec(format!("error pattern '{}' not found!",
916915
missing_patterns[0]).as_slice(),
@@ -955,7 +954,7 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
955954
}
956955

957956
let prefixes = expected_errors.iter().map(|ee| {
958-
format!("{}:{}:", testfile.display(), ee.line)
957+
format!("{:?}:{}:", testfile.display(), ee.line)
959958
}).collect::<Vec<String> >();
960959

961960
#[cfg(windows)]
@@ -1191,7 +1190,7 @@ fn compose_and_run_compiler(
11911190
None);
11921191
if !auxres.status.success() {
11931192
fatal_proc_rec(
1194-
format!("auxiliary build of {} failed to compile: ",
1193+
format!("auxiliary build of {:?} failed to compile: ",
11951194
abs_ab.display()).as_slice(),
11961195
&auxres);
11971196
}
@@ -1601,7 +1600,7 @@ fn _arm_push_aux_shared_library(config: &Config, testfile: &Path) {
16011600
.expect(format!("failed to exec `{}`", config.adb_path).as_slice());
16021601

16031602
if config.verbose {
1604-
println!("push ({}) {} {} {}",
1603+
println!("push ({}) {:?} {} {}",
16051604
config.target, file.display(),
16061605
copy_result.out, copy_result.err);
16071606
}

branches/batch/src/doc/complement-lang-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Some examples that demonstrate different aspects of the language:
1717
* [sprocketnes], an NES emulator with no GC, using modern Rust conventions
1818
* The language's general-purpose [hash] function, SipHash-2-4. Bit twiddling, OO, macros
1919
* The standard library's [HashMap], a sendable hash map in an OO style
20-
* The extra library's [json] module. Enums and pattern matching
20+
* The standard library's [json] module. Enums and pattern matching
2121

2222
[sprocketnes]: https://github.com/pcwalton/sprocketnes
2323
[hash]: https://github.com/rust-lang/rust/blob/master/src/libstd/hash/mod.rs

0 commit comments

Comments
 (0)