Skip to content

Commit 1cbfdf4

Browse files
authored
Merge branch 'master' into clippy-libcollections
2 parents d6c8dde + 49c67bd commit 1cbfdf4

File tree

404 files changed

+8686
-23860
lines changed

Some content is hidden

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

404 files changed

+8686
-23860
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@
2727
[submodule "reference"]
2828
path = src/doc/reference
2929
url = https://github.com/rust-lang-nursery/reference.git
30+
[submodule "book"]
31+
path = src/doc/book
32+
url = https://github.com/rust-lang/book

.travis.yml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,21 @@ matrix:
4747
SRC=.
4848
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
4949
SCCACHE_ERROR_LOG=/tmp/sccache.log
50-
RUST_LOG=sccache=debug
5150
MACOSX_DEPLOYMENT_TARGET=10.8
5251
MACOSX_STD_DEPLOYMENT_TARGET=10.7
5352
os: osx
5453
osx_image: xcode8.2
5554
install: &osx_install_sccache >
56-
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 &&
57-
chmod +x /usr/local/bin/sccache
55+
travis_retry curl -o /usr/local/bin/sccache https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-22-sccache-x86_64-apple-darwin &&
56+
chmod +x /usr/local/bin/sccache &&
57+
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 &&
58+
chmod +x /usr/local/bin/stamp
5859
- env: >
5960
RUST_CHECK_TARGET=check
6061
RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
6162
SRC=.
6263
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
6364
SCCACHE_ERROR_LOG=/tmp/sccache.log
64-
RUST_LOG=sccache=debug
6565
MACOSX_DEPLOYMENT_TARGET=10.8
6666
MACOSX_STD_DEPLOYMENT_TARGET=10.7
6767
os: osx
@@ -75,22 +75,18 @@ matrix:
7575
DEPLOY=1
7676
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
7777
SCCACHE_ERROR_LOG=/tmp/sccache.log
78-
RUST_LOG=sccache=debug
7978
MACOSX_DEPLOYMENT_TARGET=10.8
8079
MACOSX_STD_DEPLOYMENT_TARGET=10.7
8180
os: osx
8281
osx_image: xcode8.2
83-
install: >
84-
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 &&
85-
chmod +x /usr/local/bin/sccache
82+
install: *osx_install_sccache
8683
- env: >
8784
RUST_CHECK_TARGET=dist
8885
RUST_CONFIGURE_ARGS="--target=aarch64-apple-ios,armv7-apple-ios,armv7s-apple-ios,i386-apple-ios,x86_64-apple-ios --enable-extended"
8986
SRC=.
9087
DEPLOY=1
9188
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
9289
SCCACHE_ERROR_LOG=/tmp/sccache.log
93-
RUST_LOG=sccache=debug
9490
MACOSX_DEPLOYMENT_TARGET=10.8
9591
MACOSX_STD_DEPLOYMENT_TARGET=10.7
9692
os: osx
@@ -109,7 +105,6 @@ matrix:
109105
DEPLOY_ALT=1
110106
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
111107
SCCACHE_ERROR_LOG=/tmp/sccache.log
112-
RUST_LOG=sccache=debug
113108
MACOSX_DEPLOYMENT_TARGET=10.8
114109
MACOSX_STD_DEPLOYMENT_TARGET=10.7
115110
os: osx
@@ -123,6 +118,12 @@ env:
123118
# AWS_SECRET_ACCESS_KEY=...
124119
- secure: "Pixhh0hXDqGCdOyLtGFjli3J2AtDWIpyb2btIrLe956nCBDRutRoMm6rv5DI9sFZN07Mms7VzNNvhc9wCW1y63JAm414d2Co7Ob8kWMZlz9l9t7ACHuktUiis8yr+S4Quq1Vqd6pqi7pf2J++UxC8R/uLeqVrubzr6+X7AbmEFE="
125120

121+
# Note that this is overridden on OSX builders
122+
install: >
123+
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 &&
124+
chmod +x $HOME/stamp &&
125+
export PATH=$PATH:$HOME
126+
126127
before_script:
127128
- >
128129
echo "#### Disk usage before running script:";
@@ -134,11 +135,11 @@ script:
134135
if [ "$ALLOW_PR" = "" ] && [ "$TRAVIS_BRANCH" != "auto" ]; then
135136
echo skipping, not a full build;
136137
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
137-
travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' &&
138-
src/ci/run.sh;
138+
travis_retry stamp sh -c 'git submodule deinit -f . && git submodule update --init' &&
139+
stamp src/ci/run.sh;
139140
else
140-
travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' &&
141-
src/ci/docker/run.sh $IMAGE;
141+
travis_retry stamp sh -c 'git submodule deinit -f . && git submodule update --init' &&
142+
stamp src/ci/docker/run.sh $IMAGE;
142143
fi
143144
144145
after_success:
@@ -152,9 +153,21 @@ after_failure:
152153
echo "#### Build failed; Disk usage after running script:";
153154
df -h;
154155
du . | sort -nr | head -n100
156+
157+
# One of these is the linux sccache log, one is the OSX sccache log. Instead
158+
# of worrying about what system we are just cat both. One of these commands
159+
# will fail but that's ok, they'll both get executed.
155160
- cat obj/tmp/sccache.log
156161
- cat /tmp/sccache.log
157162

163+
# Random attempt at debugging currently. Just poking around in here to see if
164+
# anything shows up.
165+
- ls $HOME/Library/Logs/DiagnosticReports/
166+
167+
# attempt to debug anything killed by the oom killer on linux, just to see if
168+
# it happened
169+
- dmesg | grep -i kill
170+
158171
# Save tagged docker images we created and load them if they're available
159172
before_cache:
160173
- docker history -q rust-ci |

CONTRIBUTING.md

Lines changed: 6 additions & 2 deletions
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Read ["Installing Rust"] from [The Book].
1616

1717
1. Make sure you have installed the dependencies:
1818

19-
* `g++` 4.7 or later or `clang++` 3.x
19+
* `g++` 4.7 or later or `clang++` 3.x or later
2020
* `python` 2.7 (but not 3.x)
2121
* GNU `make` 3.81 or later
2222
* `cmake` 3.4.3 or later

appveyor.yml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ environment:
4343
# *not* use debug assertions and llvm assertions. This is because they take
4444
# too long on appveyor and this is tested by rustbuild below.
4545
- MSYS_BITS: 32
46-
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu
46+
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.3.0-release-win32-dwarf-rt_v5-rev1.7z
5050
MINGW_DIR: mingw32
5151
- MSYS_BITS: 64
5252
SCRIPT: python x.py test
53-
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu
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
53+
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu --enable-ninja
54+
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror
55+
MINGW_ARCHIVE: x86_64-6.3.0-release-win32-seh-rt_v5-rev1.7z
5656
MINGW_DIR: mingw64
5757

5858
# 32/64 bit MSVC and GNU deployment
@@ -68,17 +68,17 @@ environment:
6868
SCRIPT: python x.py dist
6969
DEPLOY: 1
7070
- MSYS_BITS: 32
71-
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu --enable-extended
71+
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.3.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
79-
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu --enable-extended
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
79+
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu --enable-extended --enable-ninja
80+
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror
81+
MINGW_ARCHIVE: x86_64-6.3.0-release-win32-seh-rt_v5-rev1.7z
8282
MINGW_DIR: mingw64
8383
DEPLOY: 1
8484

@@ -115,10 +115,17 @@ 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
118+
- appveyor-retry appveyor DownloadFile https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-22-sccache-x86_64-pc-windows-msvc
119+
- mv 2017-03-22-sccache-x86_64-pc-windows-msvc sccache.exe
120120
- set PATH=%PATH%;%CD%
121121

122+
# Download and install ninja
123+
#
124+
# Note that this is originally from the github releases patch of Ninja
125+
- appveyor-retry appveyor DownloadFile https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-15-ninja-win.zip
126+
- 7z x 2017-03-15-ninja-win.zip
127+
# - set PATH=%PATH%;%CD% -- this already happens above for sccache
128+
122129
# Install InnoSetup to get `iscc` used to produce installers
123130
- appveyor-retry choco install -y InnoSetup
124131
- set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
@@ -131,7 +138,6 @@ install:
131138
- handle.exe -accepteula -help
132139

133140
# Attempt to debug sccache failures
134-
- set RUST_LOG=sccache=debug
135141
- set SCCACHE_ERROR_LOG=%CD%/sccache.log
136142

137143
test_script:
@@ -176,6 +182,7 @@ deploy:
176182
on:
177183
branch: auto
178184
DEPLOY: 1
185+
max_error_retry: 5
179186

180187
# This provider is the same as the one above except that it has a slightly
181188
# different upload directory and a slightly different trigger
@@ -192,6 +199,7 @@ deploy:
192199
on:
193200
branch: auto
194201
DEPLOY_ALT: 1
202+
max_error_retry: 5
195203

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

0 commit comments

Comments
 (0)