Skip to content

Commit a1e398a

Browse files
committed
---
yaml --- r: 189311 b: refs/heads/auto c: 668c647 h: refs/heads/master i: 189309: 8c8b26d 189307: 5298a20 189303: d2236fb 189295: ca0f435 189279: 3d40ae7 189247: efc2e0f 189183: dce6745 v: v3
1 parent 8a0b2ad commit a1e398a

File tree

125 files changed

+1677
-679
lines changed

Some content is hidden

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

125 files changed

+1677
-679
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 491054f08e2aaaa8438f1a9943f115dad9da1c6b
13+
refs/heads/auto: 668c6474081a10768ef143b9984efcab5376bf68
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/mk/main.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CFG_RELEASE_NUM=1.0.0
1818
# An optional number to put after the label, e.g. '.2' -> '-beta.2'
1919
# NB Make sure it starts with a dot to conform to semver pre-release
2020
# versions (section 9)
21-
CFG_PRERELEASE_VERSION=.2
21+
CFG_PRERELEASE_VERSION=
2222

2323
CFG_FILENAME_EXTRA=4e7c5e5c
2424

@@ -30,8 +30,8 @@ CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)
3030
CFG_DISABLE_UNSTABLE_FEATURES=1
3131
endif
3232
ifeq ($(CFG_RELEASE_CHANNEL),beta)
33-
CFG_RELEASE=$(CFG_RELEASE_NUM)-alpha$(CFG_PRERELEASE_VERSION)
34-
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-alpha$(CFG_PRERELEASE_VERSION)
33+
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta(CFG_PRERELEASE_VERSION)
34+
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-beta(CFG_PRERELEASE_VERSION)
3535
CFG_DISABLE_UNSTABLE_FEATURES=1
3636
endif
3737
ifeq ($(CFG_RELEASE_CHANNEL),nightly)

branches/auto/mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ TEST_SREQ$(1)_T_$(2)_H_$(3) = \
590590

591591
# The tests select when to use debug configuration on their own;
592592
# remove directive, if present, from CFG_RUSTC_FLAGS (issue #7898).
593-
CTEST_RUSTC_FLAGS := $$(subst --cfg ndebug,,$$(CFG_RUSTC_FLAGS))
593+
CTEST_RUSTC_FLAGS := $$(subst -C debug-assertions,,$$(CFG_RUSTC_FLAGS))
594594

595595
# The tests cannot be optimized while the rest of the compiler is optimized, so
596596
# filter out the optimization (if any) from rustc and then figure out if we need

branches/auto/src/compiletest/compiletest.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@
2222
#![feature(unicode)]
2323
#![feature(core)]
2424
#![feature(path)]
25-
#![feature(os)]
2625
#![feature(io)]
27-
#![feature(fs)]
2826
#![feature(net)]
27+
#![feature(path_ext)]
2928

3029
#![deny(warnings)]
3130

branches/auto/src/compiletest/runtest.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use procsrv;
2020
use util::logv;
2121

2222
use std::env;
23-
use std::ffi::OsStr;
2423
use std::fmt;
2524
use std::fs::{self, File};
2625
use std::io::BufReader;
@@ -1323,7 +1322,7 @@ fn make_exe_name(config: &Config, testfile: &Path) -> PathBuf {
13231322
let mut f = output_base_name(config, testfile);
13241323
if !env::consts::EXE_SUFFIX.is_empty() {
13251324
let mut fname = f.file_name().unwrap().to_os_string();
1326-
fname.push_os_str(OsStr::from_str(env::consts::EXE_SUFFIX));
1325+
fname.push(env::consts::EXE_SUFFIX);
13271326
f.set_file_name(&fname);
13281327
}
13291328
f
@@ -1433,7 +1432,7 @@ fn make_out_name(config: &Config, testfile: &Path, extension: &str) -> PathBuf {
14331432
fn aux_output_dir_name(config: &Config, testfile: &Path) -> PathBuf {
14341433
let f = output_base_name(config, testfile);
14351434
let mut fname = f.file_name().unwrap().to_os_string();
1436-
fname.push_os_str(OsStr::from_str("libaux"));
1435+
fname.push("libaux");
14371436
f.with_file_name(&fname)
14381437
}
14391438

@@ -1647,8 +1646,8 @@ fn append_suffix_to_stem(p: &Path, suffix: &str) -> PathBuf {
16471646
p.to_path_buf()
16481647
} else {
16491648
let mut stem = p.file_stem().unwrap().to_os_string();
1650-
stem.push_os_str(OsStr::from_str("-"));
1651-
stem.push_os_str(OsStr::from_str(suffix));
1649+
stem.push("-");
1650+
stem.push(suffix);
16521651
p.with_file_name(&stem)
16531652
}
16541653
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
% The (old) Rust Threads and Communication Guide
22

33
This content has moved into
4-
[the Rust Programming Language book](book/tasks.html).
4+
[the Rust Programming Language book](book/concurrency.html).

branches/auto/src/doc/trpl/arrays-vectors-and-slices.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ let v = vec![1, 2, 3]; // v: Vec<i32>
6060
brackets `[]` with `vec!`. Rust allows you to use either in either situation,
6161
this is just convention.)
6262

63+
There's an alternate form of `vec!` for repeating an initial value:
64+
65+
```
66+
let v = vec![0; 10]; // ten zeroes
67+
```
68+
6369
You can get the length of, iterate over, and subscript vectors just like
6470
arrays. In addition, (mutable) vectors can grow automatically:
6571

0 commit comments

Comments
 (0)