Skip to content

Commit 8f31e19

Browse files
committed
Merge branch 'master' into issue-40006
2 parents c963d61 + 5e122f5 commit 8f31e19

File tree

658 files changed

+11326
-8662
lines changed

Some content is hidden

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

658 files changed

+11326
-8662
lines changed

.gitmodules

-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
[submodule "src/compiler-rt"]
66
path = src/compiler-rt
77
url = https://github.com/rust-lang/compiler-rt.git
8-
[submodule "src/rt/hoedown"]
9-
path = src/rt/hoedown
10-
url = https://github.com/rust-lang/hoedown.git
11-
branch = rust-2015-09-21-do-not-delete
128
[submodule "src/jemalloc"]
139
path = src/jemalloc
1410
url = https://github.com/rust-lang/jemalloc.git

.travis.yml

+55-21
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ matrix:
4040
- env: IMAGE=x86_64-gnu-distcheck
4141
- env: IMAGE=x86_64-gnu-incremental
4242

43-
# OSX builders
43+
# OSX builders running tests, these run the full test suite.
44+
#
45+
# Note that the compiler is compiled to target 10.8 here because the Xcode
46+
# version that we're using, 8.2, cannot compile LLVM for OSX 10.7.
4447
- env: >
4548
RUST_CHECK_TARGET=check
4649
RUST_CONFIGURE_ARGS=--build=x86_64-apple-darwin
@@ -52,8 +55,10 @@ matrix:
5255
os: osx
5356
osx_image: xcode8.2
5457
install: &osx_install_sccache >
55-
travis_retry curl -o /usr/local/bin/sccache https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-16-sccache-x86_64-apple-darwin &&
56-
chmod +x /usr/local/bin/sccache
58+
travis_retry curl -o /usr/local/bin/sccache https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-24-sccache-x86_64-apple-darwin &&
59+
chmod +x /usr/local/bin/sccache &&
60+
travis_retry curl -o /usr/local/bin/stamp https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-17-stamp-x86_64-apple-darwin &&
61+
chmod +x /usr/local/bin/stamp
5762
- env: >
5863
RUST_CHECK_TARGET=check
5964
RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
@@ -66,31 +71,33 @@ matrix:
6671
osx_image: xcode8.2
6772
install: *osx_install_sccache
6873
74+
# OSX builders producing releases. These do not run the full test suite and
75+
# just produce a bunch of artifacts.
76+
#
77+
# Note that these are running in the `xcode7` image instead of the
78+
# `xcode8.2` image as above. That's because we want to build releases for
79+
# OSX 10.7 and `xcode7` is the latest Xcode able to compile LLVM for 10.7.
6980
- env: >
7081
RUST_CHECK_TARGET=dist
7182
RUST_CONFIGURE_ARGS="--build=i686-apple-darwin --enable-extended"
7283
SRC=.
7384
DEPLOY=1
7485
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
7586
SCCACHE_ERROR_LOG=/tmp/sccache.log
76-
MACOSX_DEPLOYMENT_TARGET=10.8
77-
MACOSX_STD_DEPLOYMENT_TARGET=10.7
87+
MACOSX_DEPLOYMENT_TARGET=10.7
7888
os: osx
79-
osx_image: xcode8.2
80-
install: >
81-
travis_retry curl -o /usr/local/bin/sccache https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-16-sccache-x86_64-apple-darwin &&
82-
chmod +x /usr/local/bin/sccache
89+
osx_image: xcode7
90+
install: *osx_install_sccache
8391
- env: >
8492
RUST_CHECK_TARGET=dist
8593
RUST_CONFIGURE_ARGS="--target=aarch64-apple-ios,armv7-apple-ios,armv7s-apple-ios,i386-apple-ios,x86_64-apple-ios --enable-extended"
8694
SRC=.
8795
DEPLOY=1
8896
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
8997
SCCACHE_ERROR_LOG=/tmp/sccache.log
90-
MACOSX_DEPLOYMENT_TARGET=10.8
91-
MACOSX_STD_DEPLOYMENT_TARGET=10.7
98+
MACOSX_DEPLOYMENT_TARGET=10.7
9299
os: osx
93-
osx_image: xcode8.2
100+
osx_image: xcode7
94101
install: *osx_install_sccache
95102
96103
# "alternate" deployments, these are "nightlies" but don't have assertions
@@ -105,10 +112,9 @@ matrix:
105112
DEPLOY_ALT=1
106113
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
107114
SCCACHE_ERROR_LOG=/tmp/sccache.log
108-
MACOSX_DEPLOYMENT_TARGET=10.8
109-
MACOSX_STD_DEPLOYMENT_TARGET=10.7
115+
MACOSX_DEPLOYMENT_TARGET=10.7
110116
os: osx
111-
osx_image: xcode8.2
117+
osx_image: xcode7
112118
install: *osx_install_sccache
113119
114120
env:
@@ -118,6 +124,12 @@ env:
118124
# AWS_SECRET_ACCESS_KEY=...
119125
- secure: "Pixhh0hXDqGCdOyLtGFjli3J2AtDWIpyb2btIrLe956nCBDRutRoMm6rv5DI9sFZN07Mms7VzNNvhc9wCW1y63JAm414d2Co7Ob8kWMZlz9l9t7ACHuktUiis8yr+S4Quq1Vqd6pqi7pf2J++UxC8R/uLeqVrubzr6+X7AbmEFE="
120126

127+
# Note that this is overridden on OSX builders
128+
install: >
129+
travis_retry curl -o $HOME/stamp https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-17-stamp-x86_64-unknown-linux-musl &&
130+
chmod +x $HOME/stamp &&
131+
export PATH=$PATH:$HOME
132+
121133
before_script:
122134
- >
123135
echo "#### Disk usage before running script:";
@@ -127,13 +139,14 @@ before_script:
127139
script:
128140
- >
129141
if [ "$ALLOW_PR" = "" ] && [ "$TRAVIS_BRANCH" != "auto" ]; then
130-
echo skipping, not a full build;
131-
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
132-
travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' &&
133-
src/ci/run.sh;
142+
echo skipping, not a full build
134143
else
135-
travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' &&
136-
src/ci/docker/run.sh $IMAGE;
144+
stamp src/ci/init_repo.sh . "$HOME/rustsrc" &&
145+
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
146+
stamp src/ci/run.sh;
147+
else
148+
stamp src/ci/docker/run.sh $IMAGE;
149+
fi
137150
fi
138151
139152
after_success:
@@ -147,24 +160,45 @@ after_failure:
147160
echo "#### Build failed; Disk usage after running script:";
148161
df -h;
149162
du . | sort -nr | head -n100
163+
164+
# One of these is the linux sccache log, one is the OSX sccache log. Instead
165+
# of worrying about what system we are just cat both. One of these commands
166+
# will fail but that's ok, they'll both get executed.
150167
- cat obj/tmp/sccache.log
151168
- cat /tmp/sccache.log
152169

170+
# Random attempt at debugging currently. Just poking around in here to see if
171+
# anything shows up.
172+
- ls $HOME/Library/Logs/DiagnosticReports/
173+
174+
# attempt to debug anything killed by the oom killer on linux, just to see if
175+
# it happened
176+
- dmesg | grep -i kill
177+
153178
# Save tagged docker images we created and load them if they're available
179+
# Travis saves caches whether the build failed or not, nuke rustsrc if
180+
# the failure was while updating it (as it may be in an bad state)
181+
# https://github.com/travis-ci/travis-ci/issues/4472
154182
before_cache:
155183
- docker history -q rust-ci |
156184
grep -v missing |
157185
xargs docker save |
158186
gzip > $HOME/docker/rust-ci.tar.gz
187+
- if [ ! -f $HOME/rustsrc/cache_valid1 ]; then
188+
echo "WARNING rustsrc cache was invalid when saving";
189+
rm -rf $HOME/rustsrc && mkdir $HOME/rustsrc;
190+
fi
159191
before_install:
160192
- zcat $HOME/docker/rust-ci.tar.gz | docker load || true
193+
- mkdir -p $HOME/rustsrc
161194

162195
notifications:
163196
email: false
164197

165198
cache:
166199
directories:
167200
- $HOME/docker
201+
- $HOME/rustsrc
168202

169203
before_deploy:
170204
- mkdir -p deploy/$TRAVIS_COMMIT

CONTRIBUTING.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,13 @@ To save @bors some work, and to get small changes through more quickly, when
311311
the other rollup-eligible patches too, and they'll get tested and merged at
312312
the same time.
313313

314-
To find documentation-related issues, sort by the [A-docs label][adocs].
314+
To find documentation-related issues, sort by the [T-doc label][tdoc].
315315

316-
[adocs]: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3AA-docs
316+
[tdoc]: https://github.com/rust-lang/rust/issues?q=is%3Aopen%20is%3Aissue%20label%3AT-doc
317+
318+
You can find documentation style guidelines in [RFC 1574][rfc1574].
319+
320+
[rfc1574]: https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text
317321

318322
In many cases, you don't need a full `./x.py doc`. You can use `rustdoc` directly
319323
to check small fixes. For example, `rustdoc src/doc/reference.md` will render

appveyor.yml

+12-10
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ environment:
4545
- MSYS_BITS: 32
4646
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu --enable-ninja
4747
SCRIPT: python x.py test
48-
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
49-
MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
48+
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror
49+
MINGW_ARCHIVE: i686-6.2.0-release-win32-dwarf-rt_v5-rev1.7z
5050
MINGW_DIR: mingw32
5151
- MSYS_BITS: 64
5252
SCRIPT: python x.py test
5353
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu --enable-ninja
54-
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
55-
MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
54+
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror
55+
MINGW_ARCHIVE: x86_64-6.2.0-release-win32-seh-rt_v5-rev1.7z
5656
MINGW_DIR: mingw64
5757

5858
# 32/64 bit MSVC and GNU deployment
@@ -70,15 +70,15 @@ environment:
7070
- MSYS_BITS: 32
7171
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu --enable-extended --enable-ninja
7272
SCRIPT: python x.py dist
73-
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
74-
MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
73+
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror
74+
MINGW_ARCHIVE: i686-6.2.0-release-win32-dwarf-rt_v5-rev1.7z
7575
MINGW_DIR: mingw32
7676
DEPLOY: 1
7777
- MSYS_BITS: 64
7878
SCRIPT: python x.py dist
7979
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu --enable-extended --enable-ninja
80-
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
81-
MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
80+
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror
81+
MINGW_ARCHIVE: x86_64-6.2.0-release-win32-seh-rt_v5-rev1.7z
8282
MINGW_DIR: mingw64
8383
DEPLOY: 1
8484

@@ -115,8 +115,8 @@ install:
115115
- set PATH=C:\Python27;%PATH%
116116

117117
# Download and install sccache
118-
- appveyor-retry appveyor DownloadFile https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-16-sccache-x86_64-pc-windows-msvc
119-
- mv 2017-03-16-sccache-x86_64-pc-windows-msvc sccache.exe
118+
- appveyor-retry appveyor DownloadFile https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-24-sccache-x86_64-pc-windows-msvc
119+
- mv 2017-03-24-sccache-x86_64-pc-windows-msvc sccache.exe
120120
- set PATH=%PATH%;%CD%
121121

122122
# Download and install ninja
@@ -182,6 +182,7 @@ deploy:
182182
on:
183183
branch: auto
184184
DEPLOY: 1
185+
max_error_retry: 5
185186

186187
# This provider is the same as the one above except that it has a slightly
187188
# different upload directory and a slightly different trigger
@@ -198,6 +199,7 @@ deploy:
198199
on:
199200
branch: auto
200201
DEPLOY_ALT: 1
202+
max_error_retry: 5
201203

202204
# init:
203205
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

0 commit comments

Comments
 (0)