Skip to content

Commit 0aa42ed

Browse files
committed
---
yaml --- r: 189745 b: refs/heads/try c: 946a396 h: refs/heads/master i: 189743: 7548c2a v: v3
1 parent cf7b043 commit 0aa42ed

File tree

152 files changed

+900
-2161
lines changed

Some content is hidden

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

152 files changed

+900
-2161
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: f899513a30165946a75ff7f515ab37a226e72172
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 270a677d4d698916f5ad103f0afc3c070b8dbeb4
5-
refs/heads/try: d30609ffd782c941f38d62caaed8beb6fde965db
5+
refs/heads/try: 946a3963f3cf3f6f4334e89793af77a4da163dc7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/configure

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,6 @@ case $CFG_OSTYPE in
430430
CFG_CPUTYPE=x86_64
431431
;;
432432

433-
# Win 8 # uname -s on 64-bit cygwin does not contain WOW64, so simply use uname -m to detect arch (works in my install)
434-
CYGWIN_NT-6.3)
435-
CFG_OSTYPE=pc-windows-gnu
436-
;;
437433
# We do not detect other OS such as XP/2003 using 64 bit using uname.
438434
# If we want to in the future, we will need to use Cygwin - Chuck's csih helper in /usr/lib/csih/winProductName.exe or alternative.
439435
*)
@@ -701,17 +697,15 @@ probe CFG_ADB adb
701697

702698
if [ ! -z "$CFG_PANDOC" ]
703699
then
704-
PV_MAJOR_MINOR=$(pandoc --version | grep '^pandoc' |
705-
# Extract "MAJOR MINOR" from Pandoc's version number
706-
sed -E 's/pandoc(.exe)? ([0-9]+)\.([0-9]+).*/\2 \3/')
700+
PV_MAJOR_MINOR=$(pandoc --version | grep '^pandoc\(.exe\)\? ' |
701+
# extract the first 2 version fields, ignore everything else
702+
sed 's/pandoc\(.exe\)\? \([0-9]*\)\.\([0-9]*\).*/\2 \3/')
707703

708704
MIN_PV_MAJOR="1"
709705
MIN_PV_MINOR="9"
710-
711706
# these patterns are shell globs, *not* regexps
712707
PV_MAJOR=${PV_MAJOR_MINOR% *}
713708
PV_MINOR=${PV_MAJOR_MINOR#* }
714-
715709
if [ "$PV_MAJOR" -lt "$MIN_PV_MAJOR" ] || [ "$PV_MINOR" -lt "$MIN_PV_MINOR" ]
716710
then
717711
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. Need at least $MIN_PV_MAJOR.$MIN_PV_MINOR. Disabling"

branches/try/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=
21+
CFG_PRERELEASE_VERSION=.2
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)-beta(CFG_PRERELEASE_VERSION)
34-
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-beta(CFG_PRERELEASE_VERSION)
33+
CFG_RELEASE=$(CFG_RELEASE_NUM)-alpha$(CFG_PRERELEASE_VERSION)
34+
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-alpha$(CFG_PRERELEASE_VERSION)
3535
CFG_DISABLE_UNSTABLE_FEATURES=1
3636
endif
3737
ifeq ($(CFG_RELEASE_CHANNEL),nightly)

branches/try/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 -C debug-assertions,,$$(CFG_RUSTC_FLAGS))
593+
CTEST_RUSTC_FLAGS := $$(subst --cfg ndebug,,$$(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/try/src/compiletest/compiletest.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
#![feature(unicode)]
2323
#![feature(core)]
2424
#![feature(path)]
25+
#![feature(os)]
2526
#![feature(io)]
27+
#![feature(fs)]
2628
#![feature(net)]
27-
#![feature(path_ext)]
2829

2930
#![deny(warnings)]
3031

branches/try/src/compiletest/runtest.rs

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

2222
use std::env;
23+
use std::ffi::OsStr;
2324
use std::fmt;
2425
use std::fs::{self, File};
2526
use std::io::BufReader;
@@ -1322,7 +1323,7 @@ fn make_exe_name(config: &Config, testfile: &Path) -> PathBuf {
13221323
let mut f = output_base_name(config, testfile);
13231324
if !env::consts::EXE_SUFFIX.is_empty() {
13241325
let mut fname = f.file_name().unwrap().to_os_string();
1325-
fname.push(env::consts::EXE_SUFFIX);
1326+
fname.push_os_str(OsStr::from_str(env::consts::EXE_SUFFIX));
13261327
f.set_file_name(&fname);
13271328
}
13281329
f
@@ -1432,7 +1433,7 @@ fn make_out_name(config: &Config, testfile: &Path, extension: &str) -> PathBuf {
14321433
fn aux_output_dir_name(config: &Config, testfile: &Path) -> PathBuf {
14331434
let f = output_base_name(config, testfile);
14341435
let mut fname = f.file_name().unwrap().to_os_string();
1435-
fname.push("libaux");
1436+
fname.push_os_str(OsStr::from_str("libaux"));
14361437
f.with_file_name(&fname)
14371438
}
14381439

@@ -1646,8 +1647,8 @@ fn append_suffix_to_stem(p: &Path, suffix: &str) -> PathBuf {
16461647
p.to_path_buf()
16471648
} else {
16481649
let mut stem = p.file_stem().unwrap().to_os_string();
1649-
stem.push("-");
1650-
stem.push(suffix);
1650+
stem.push_os_str(OsStr::from_str("-"));
1651+
stem.push_os_str(OsStr::from_str(suffix));
16511652
p.with_file_name(&stem)
16521653
}
16531654
}

branches/try/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/concurrency.html).
4+
[the Rust Programming Language book](book/tasks.html).

branches/try/src/doc/reference.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,10 +2429,6 @@ The currently implemented features of the reference compiler are:
24292429
so that new attributes can be added in a bacwards compatible
24302430
manner (RFC 572).
24312431

2432-
* `custom_derive` - Allows the use of `#[derive(Foo,Bar)]` as sugar for
2433-
`#[derive_Foo] #[derive_Bar]`, which can be user-defined syntax
2434-
extensions.
2435-
24362432
* `intrinsics` - Allows use of the "rust-intrinsics" ABI. Compiler intrinsics
24372433
are inherently unstable and no promise about them is made.
24382434

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,6 @@ 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-
6963
You can get the length of, iterate over, and subscript vectors just like
7064
arrays. In addition, (mutable) vectors can grow automatically:
7165

0 commit comments

Comments
 (0)