Skip to content

Commit 0c07742

Browse files
committed
---
yaml --- r: 134655 b: refs/heads/try c: 8a45818 h: refs/heads/master i: 134653: e327e09 134651: 124e0de 134647: d217b20 134639: 820ee84 134623: 14bdc34 134591: 2fff197 134527: 7348d49 134399: 74bfdce 134143: 804073f v: v3
1 parent 8c6c245 commit 0c07742

File tree

288 files changed

+7280
-3128
lines changed

Some content is hidden

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

288 files changed

+7280
-3128
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: 58413c09cd52ea4005d6ea7733ba1fb3a8f36589
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 437179ed8bf7f7672f84b19265df1ce569e70490
5-
refs/heads/try: a0d502b0ed096397b7cccde37ec7139011ce7e9a
5+
refs/heads/try: 8a458181dd7fef8df0bb488eee2c354a8ca4df4a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/configure

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ case $CFG_OSTYPE in
306306
# instead, msys defines $MSYSTEM which is MINGW32 on i686 and
307307
# MINGW64 on x86_64.
308308
CFG_CPUTYPE=i686
309-
CFG_OSTYPE=pc-mingw32
309+
CFG_OSTYPE=w64-mingw32
310310
if [ "$MSYSTEM" = MINGW64 ]
311311
then
312312
CFG_CPUTYPE=x86_64
@@ -453,6 +453,8 @@ valopt datadir "${CFG_PREFIX}/share" "install data"
453453
valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
454454
valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
455455

456+
valopt release-channel "source" "the name of the release channel to build"
457+
456458
# On windows we just store the libraries in the bin directory because
457459
# there's no rpath. This is where the build system itself puts libraries;
458460
# --libdir is used to configure the installation directory.
@@ -475,11 +477,22 @@ fi
475477
step_msg "validating $CFG_SELF args"
476478
validate_opt
477479

478-
# Temporarily support the old windows triples while the bots make the transition
480+
# Validate the release channel
481+
case "$CFG_RELEASE_CHANNEL" in
482+
(source | nightly | beta | stable)
483+
;;
484+
(*)
485+
err "release channel must be 'source', 'nightly', 'beta' or 'stable'"
486+
;;
487+
esac
488+
489+
# Continue supporting the old --enable-nightly flag to transition the bots
479490
# XXX Remove me
480-
CFG_BUILD=`echo "${CFG_BUILD}" | sed 's/-pc-mingw32/-w64-mingw32/g'`
481-
CFG_HOST=`echo "${CFG_HOST}" | sed 's/-pc-mingw32/-w64-mingw32/g'`
482-
CFG_TARGET=`echo "${CFG_TARGET}" | sed 's/-pc-mingw32/-w64-mingw32/g'`
491+
if [ $CFG_ENABLE_NIGHTLY -eq 1 ]
492+
then
493+
CFG_RELEASE_CHANNEL=nightly
494+
putvar CFG_RELEASE_CHANNEL
495+
fi
483496

484497
step_msg "looking for build programs"
485498

@@ -636,7 +649,7 @@ then
636649
# check that gcc, cc and g++ all point to the same compiler.
637650
# note that for xcode 5, g++ points to clang, not clang++
638651
if !((chk_cc gcc clang && chk_cc g++ clang) ||
639-
(chk_cc gcc gcc &&( chk_cc g++ g++ || chk g++ gcc))) then
652+
(chk_cc gcc gcc &&( chk_cc g++ g++ || chk g++ gcc))); then
640653
err "the gcc and g++ in your path point to different compilers.
641654
Check which versions are in your path with gcc --version and g++ --version.
642655
To resolve this problem, either fix your PATH or run configure with --enable-clang"

branches/try/man/rustc.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH RUSTC "1" "March 2014" "rustc 0.12.0-pre" "User Commands"
1+
.TH RUSTC "1" "March 2014" "rustc 0.12.0" "User Commands"
22
.SH NAME
33
rustc \- The Rust compiler
44
.SH SYNOPSIS

branches/try/man/rustdoc.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH RUSTDOC "1" "March 2014" "rustdoc 0.12.0-pre" "User Commands"
1+
.TH RUSTDOC "1" "March 2014" "rustdoc 0.12.0" "User Commands"
22
.SH NAME
33
rustdoc \- generate documentation from Rust source code
44
.SH SYNOPSIS

branches/try/mk/main.mk

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,32 @@
1414

1515
# The version number
1616
CFG_RELEASE_NUM=0.12.0
17-
CFG_RELEASE_LABEL=-pre
1817

1918
CFG_FILENAME_EXTRA=4e7c5e5c
2019

21-
ifndef CFG_ENABLE_NIGHTLY
22-
# This is the normal version string
23-
CFG_RELEASE=$(CFG_RELEASE_NUM)$(CFG_RELEASE_LABEL)
24-
CFG_PACKAGE_VERS=$(CFG_RELEASE)
25-
else
26-
# Modify the version label for nightly builds
27-
CFG_RELEASE=$(CFG_RELEASE_NUM)$(CFG_RELEASE_LABEL)-nightly
28-
# When building nightly distributables just reuse the same "rust-nightly" name
29-
# so when we upload we'll always override the previous nighly. This doesn't actually
30-
# impact the version reported by rustc - it's just for file naming.
20+
ifeq ($(CFG_RELEASE_CHANNEL),stable)
21+
# This is the normal semver version string, e.g. "0.12.0", "0.12.0-nightly"
22+
CFG_RELEASE=$(CFG_RELEASE_NUM)
23+
# This is the string used in dist artifact file names, e.g. "0.12.0", "nightly"
24+
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)
25+
endif
26+
ifeq ($(CFG_RELEASE_CHANNEL),beta)
27+
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta
28+
# When building beta/nightly distributables just reuse the same "beta"
29+
# name so when we upload we'll always override the previous
30+
# nighly. This doesn't actually impact the version reported by rustc -
31+
# it's just for file naming.
32+
CFG_PACKAGE_VERS=beta
33+
endif
34+
ifeq ($(CFG_RELEASE_CHANNEL),nightly)
35+
CFG_RELEASE=$(CFG_RELEASE_NUM)-nightly
3136
CFG_PACKAGE_VERS=nightly
3237
endif
38+
ifeq ($(CFG_RELEASE_CHANNEL),source)
39+
CFG_RELEASE=$(CFG_RELEASE_NUM)-pre
40+
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-pre
41+
endif
42+
3343
# The name of the package to use for creating tarballs, installers etc.
3444
CFG_PACKAGE_NAME=rust-$(CFG_PACKAGE_VERS)
3545

branches/try/mk/tests.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@ check-ref: cleantestlibs cleantmptestlogs check-stage2-rpass \
194194
check-docs: cleantestlibs cleantmptestlogs check-stage2-docs
195195
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
196196

197-
# NOTE: Remove after reprogramming windows bots
198-
check-fast: check-lite
199-
200197
# Some less critical tests that are not prone to breakage.
201198
# Not run as part of the normal test suite, but tested by bors on checkin.
202199
check-secondary: check-lexer check-pretty

branches/try/src/compiletest/header.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ pub struct TestProps {
4242
pub pretty_mode: String,
4343
// Only compare pretty output and don't try compiling
4444
pub pretty_compare_only: bool,
45+
// Patterns which must not appear in the output of a cfail test.
46+
pub forbid_output: Vec<String>,
4547
}
4648

4749
// Load any test directives embedded in the file
@@ -59,6 +61,7 @@ pub fn load_props(testfile: &Path) -> TestProps {
5961
let mut no_pretty_expanded = false;
6062
let mut pretty_mode = None;
6163
let mut pretty_compare_only = false;
64+
let mut forbid_output = Vec::new();
6265
iter_header(testfile, |ln| {
6366
match parse_error_pattern(ln) {
6467
Some(ep) => error_patterns.push(ep),
@@ -116,6 +119,11 @@ pub fn load_props(testfile: &Path) -> TestProps {
116119
None => ()
117120
};
118121

122+
match parse_forbid_output(ln) {
123+
Some(of) => forbid_output.push(of),
124+
None => (),
125+
}
126+
119127
true
120128
});
121129

@@ -132,7 +140,8 @@ pub fn load_props(testfile: &Path) -> TestProps {
132140
no_prefer_dynamic: no_prefer_dynamic,
133141
no_pretty_expanded: no_pretty_expanded,
134142
pretty_mode: pretty_mode.unwrap_or("normal".to_string()),
135-
pretty_compare_only: pretty_compare_only
143+
pretty_compare_only: pretty_compare_only,
144+
forbid_output: forbid_output,
136145
}
137146
}
138147

@@ -210,6 +219,10 @@ fn parse_error_pattern(line: &str) -> Option<String> {
210219
parse_name_value_directive(line, "error-pattern")
211220
}
212221

222+
fn parse_forbid_output(line: &str) -> Option<String> {
223+
parse_name_value_directive(line, "forbid-output")
224+
}
225+
213226
fn parse_aux_build(line: &str) -> Option<String> {
214227
parse_name_value_directive(line, "aux-build")
215228
}

0 commit comments

Comments
 (0)