Skip to content

Commit c604301

Browse files
committed
Merge branch 'master' into docs.rs-update-rustc
2 parents dfddfa7 + 816d765 commit c604301

File tree

4,623 files changed

+157079
-67883
lines changed

Some content is hidden

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

4,623 files changed

+157079
-67883
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
src/etc/installer/gfx/* binary
88
*.woff binary
99
src/vendor/** -text
10+
Cargo.lock -merge

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,13 @@ config.stamp
9595
keywords.md
9696
lexer.ml
9797
src/etc/dl
98-
src/librustc_llvm/llvmdeps.rs
9998
tmp.*.rs
10099
version.md
101100
version.ml
102101
version.texi
103102
.cargo
104103
!src/vendor/**
105104
/src/target/
105+
106+
no_llvm_build
107+

.gitmodules

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
[submodule "src/tools/cargo"]
2222
path = src/tools/cargo
2323
url = https://github.com/rust-lang/cargo.git
24-
[submodule "reference"]
24+
[submodule "src/doc/reference"]
2525
path = src/doc/reference
2626
url = https://github.com/rust-lang-nursery/reference.git
27-
[submodule "book"]
27+
[submodule "src/doc/book"]
2828
path = src/doc/book
2929
url = https://github.com/rust-lang/book.git
3030
[submodule "src/tools/rls"]
@@ -42,3 +42,12 @@
4242
[submodule "src/tools/miri"]
4343
path = src/tools/miri
4444
url = https://github.com/solson/miri.git
45+
[submodule "src/dlmalloc"]
46+
path = src/dlmalloc
47+
url = https://github.com/alexcrichton/dlmalloc-rs.git
48+
[submodule "src/binaryen"]
49+
path = src/binaryen
50+
url = https://github.com/alexcrichton/binaryen.git
51+
[submodule "src/doc/rust-by-example"]
52+
path = src/doc/rust-by-example
53+
url = https://github.com/rust-lang/rust-by-example

.travis.yml

Lines changed: 70 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,24 @@ services:
55
- docker
66

77
git:
8-
depth: 1
8+
depth: 2
99
submodules: false
1010

1111
matrix:
1212
fast_finish: true
1313
include:
1414
# Images used in testing PR and try-build should be run first.
15-
- env: IMAGE=x86_64-gnu-llvm-3.7 RUST_BACKTRACE=1
15+
- env: IMAGE=x86_64-gnu-llvm-3.9 RUST_BACKTRACE=1
1616
if: type = pull_request OR branch = auto
1717

1818
- env: IMAGE=dist-x86_64-linux DEPLOY=1
1919
if: branch = try OR branch = auto
2020

21-
# "alternate" deployments, these are "nightlies" but don't have assertions
22-
# turned on, they're deployed to a different location primarily for projects
23-
# which are stuck on nightly and don't want llvm assertions in the artifacts
24-
# that they use.
21+
# "alternate" deployments, these are "nightlies" but have LLVM assertions
22+
# turned on, they're deployed to a different location primarily for
23+
# additional testing.
2524
- env: IMAGE=dist-x86_64-linux DEPLOY_ALT=1
26-
if: branch = auto
25+
if: branch = try OR branch = auto
2726

2827
- env: >
2928
RUST_CHECK_TARGET=dist
@@ -36,7 +35,7 @@ matrix:
3635
NO_LLVM_ASSERTIONS=1
3736
NO_DEBUG_ASSERTIONS=1
3837
os: osx
39-
osx_image: xcode7
38+
osx_image: xcode7.3
4039
if: branch = auto
4140
4241
# macOS builders. These are placed near the beginning because they are very
@@ -57,7 +56,7 @@ matrix:
5756
NO_LLVM_ASSERTIONS=1
5857
NO_DEBUG_ASSERTIONS=1
5958
os: osx
60-
osx_image: xcode8.2
59+
osx_image: xcode8.3
6160
if: branch = auto
6261
6362
- env: >
@@ -71,7 +70,7 @@ matrix:
7170
NO_LLVM_ASSERTIONS=1
7271
NO_DEBUG_ASSERTIONS=1
7372
os: osx
74-
osx_image: xcode8.2
73+
osx_image: xcode8.3
7574
if: branch = auto
7675
7776
# OSX builders producing releases. These do not run the full test suite and
@@ -91,7 +90,7 @@ matrix:
9190
NO_LLVM_ASSERTIONS=1
9291
NO_DEBUG_ASSERTIONS=1
9392
os: osx
94-
osx_image: xcode7
93+
osx_image: xcode7.3
9594
if: branch = auto
9695
9796
- env: >
@@ -105,15 +104,17 @@ matrix:
105104
NO_LLVM_ASSERTIONS=1
106105
NO_DEBUG_ASSERTIONS=1
107106
os: osx
108-
osx_image: xcode7
107+
osx_image: xcode7.3
109108
if: branch = auto
110109
111110
# Linux builders, remaining docker images
112111
- env: IMAGE=arm-android
113112
if: branch = auto
114113
- env: IMAGE=armhf-gnu
115114
if: branch = auto
116-
- env: IMAGE=cross DEPLOY=1
115+
- env: IMAGE=dist-various-1 DEPLOY=1
116+
if: branch = auto
117+
- env: IMAGE=dist-various-2 DEPLOY=1
117118
if: branch = auto
118119
- env: IMAGE=dist-aarch64-linux DEPLOY=1
119120
if: branch = auto
@@ -125,9 +126,7 @@ matrix:
125126
if: branch = auto
126127
- env: IMAGE=dist-armv7-linux DEPLOY=1
127128
if: branch = auto
128-
- env: IMAGE=dist-fuchsia DEPLOY=1
129-
if: branch = auto
130-
- env: IMAGE=dist-i586-gnu-i686-musl DEPLOY=1
129+
- env: IMAGE=dist-i586-gnu-i586-i686-musl DEPLOY=1
131130
if: branch = auto
132131
- env: IMAGE=dist-i686-freebsd DEPLOY=1
133132
if: branch = auto
@@ -161,14 +160,16 @@ matrix:
161160
if: branch = auto
162161
- env: IMAGE=i686-gnu-nopt
163162
if: branch = auto
164-
# - env: IMAGE=wasm32 issue 42646
165-
# if: branch = auto
163+
- env: IMAGE=wasm32-unknown
164+
if: branch = auto
166165
- env: IMAGE=x86_64-gnu
167166
if: branch = auto
168167
- env: IMAGE=x86_64-gnu-full-bootstrap
169168
if: branch = auto
170169
- env: IMAGE=x86_64-gnu-aux
171170
if: branch = auto
171+
- env: IMAGE=x86_64-gnu-tools
172+
if: branch = auto
172173
- env: IMAGE=x86_64-gnu-debug
173174
if: branch = auto
174175
- env: IMAGE=x86_64-gnu-nopt
@@ -178,17 +179,37 @@ matrix:
178179
- env: IMAGE=x86_64-gnu-incremental
179180
if: branch = auto
180181

182+
- stage: publish toolstate
183+
if: branch = master AND type = push
184+
before_install: []
185+
install: []
186+
cache: false
187+
sudo: false
188+
script:
189+
MESSAGE_FILE=$(mktemp -t msg.XXXXXX);
190+
. src/ci/docker/x86_64-gnu-tools/repo.sh;
191+
commit_toolstate_change "$MESSAGE_FILE" "$TRAVIS_BUILD_DIR/src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" "$(git log --format=%s -n1 HEAD)" "$MESSAGE_FILE"
192+
181193
env:
182194
global:
183195
- SCCACHE_BUCKET=rust-lang-ci-sccache2
184196
- SCCACHE_REGION=us-west-1
185197
- AWS_ACCESS_KEY_ID=AKIAJAMV3QAMMA6AXHFQ
186198
# AWS_SECRET_ACCESS_KEY=...
187199
- secure: "j96XxTVOSUf4s4r4htIxn/fvIa5DWbMgLqWl7r8z2QfgUwscmkMXAwXuFNc7s7bGTpV/+CgDiMFFM6BAFLGKutytIF6oA02s9b+usQYnM0th7YQ2AIgm9GtMTJCJp4AoyfFmh8F2faUICBZlfVLUJ34udHEe35vOklix+0k4WDo="
200+
# TOOLSTATE_REPO_ACCESS_TOKEN=...
201+
- secure: "cFh8thThqEJLC98XKI5pfqflUzOlxsYPRW20AWRaYOOgYHPTiGWypTXiPbGSKaeAXTZoOA+DpQtEmefc0U6lt9dHc7a/MIaK6isFurjlnKYiLOeTruzyu1z7PWCeZ/jKXsU2RK/88DBtlNwfMdaMIeuKj14IVfpepPPL71ETbuk="
188202

189203
before_install:
190204
- zcat $HOME/docker/rust-ci.tar.gz | docker load || true
191205
- mkdir -p $HOME/rustsrc
206+
# FIXME(#46924): these two commands are required to enable IPv6,
207+
# they shouldn't exist, please revert once more official solutions appeared.
208+
# see https://github.com/travis-ci/travis-ci/issues/8891#issuecomment-353403729
209+
- if [ "$TRAVIS_OS_NAME" = linux ]; then
210+
echo '{"ipv6":true,"fixed-cidr-v6":"fd9a:8454:6789:13f7::/64"}' | sudo tee /etc/docker/daemon.json;
211+
sudo service docker restart;
212+
fi
192213

193214
install:
194215
- case "$TRAVIS_OS_NAME" in
@@ -251,7 +272,14 @@ after_failure:
251272

252273
# Random attempt at debugging currently. Just poking around in here to see if
253274
# anything shows up.
254-
- ls $HOME/Library/Logs/DiagnosticReports/
275+
- ls -lat $HOME/Library/Logs/DiagnosticReports/
276+
- find $HOME/Library/Logs/DiagnosticReports
277+
-type f
278+
-not -name '*.stage2-*.crash'
279+
-not -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash'
280+
-exec printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" {} \;
281+
-exec head -750 {} \;
282+
-exec echo travis_fold":"end:crashlog \;
255283

256284
# attempt to debug anything killed by the oom killer on linux, just to see if
257285
# it happened
@@ -284,6 +312,8 @@ before_deploy:
284312
rm -rf obj/build/dist/doc &&
285313
cp -r obj/build/dist/* deploy/$TRAVIS_COMMIT;
286314
fi
315+
- travis_retry gem update --system
316+
- ls -la deploy/$TRAVIS_COMMIT
287317

288318
deploy:
289319
- provider: s3
@@ -300,11 +330,30 @@ deploy:
300330
branch: auto
301331
condition: $DEPLOY = 1
302332

333+
# this is the same as the above deployment provider except that it uploads to
334+
# a slightly different directory and has a different trigger
335+
- provider: s3
336+
bucket: rust-lang-ci2
337+
skip_cleanup: true
338+
local_dir: deploy
339+
upload_dir: rustc-builds-alt
340+
acl: public_read
341+
region: us-west-1
342+
access_key_id: AKIAJVBODR3IA4O72THQ
343+
secret_access_key:
344+
secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
345+
on:
346+
branch: auto
347+
condition: $DEPLOY_ALT = 1
348+
349+
# These two providers are the same as the two above, except deploy on the
350+
# try branch. Travis does not appear to provide a way to use "or" in these
351+
# conditions.
303352
- provider: s3
304353
bucket: rust-lang-ci2
305354
skip_cleanup: true
306355
local_dir: deploy
307-
upload_dir: rustc-builds-try
356+
upload_dir: rustc-builds
308357
acl: public_read
309358
region: us-west-1
310359
access_key_id: AKIAJVBODR3IA4O72THQ
@@ -314,8 +363,6 @@ deploy:
314363
branch: try
315364
condition: $DEPLOY = 1
316365

317-
# this is the same as the above deployment provider except that it uploads to
318-
# a slightly different directory and has a different trigger
319366
- provider: s3
320367
bucket: rust-lang-ci2
321368
skip_cleanup: true
@@ -327,5 +374,5 @@ deploy:
327374
secret_access_key:
328375
secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
329376
on:
330-
branch: auto
377+
branch: try
331378
condition: $DEPLOY_ALT = 1

CODE_OF_CONDUCT.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ A version of this document [can be found online](https://www.rust-lang.org/condu
66

77
**Contact**: [[email protected]](mailto:[email protected])
88

9-
* We are committed to providing a friendly, safe and welcoming environment for all, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, nationality, or other similar characteristic.
9+
* We are committed to providing a friendly, safe and welcoming environment for all, regardless of level of experience, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, nationality, or other similar characteristic.
1010
* On IRC, please avoid using overtly sexual nicknames or other nicknames that might detract from a friendly, safe and welcoming environment for all.
1111
* Please be kind and courteous. There's no need to be mean or rude.
1212
* Respect that people have differences of opinion and that every design or implementation choice carries a trade-off and numerous costs. There is seldom a right answer.
1313
* Please keep unstructured critique to a minimum. If you have solid ideas you want to experiment with, make a fork and see how it works.
1414
* We will exclude you from interaction if you insult, demean or harass anyone. That is not welcome behaviour. We interpret the term "harassment" as including the definition in the <a href="http://citizencodeofconduct.org/">Citizen Code of Conduct</a>; if you have any lack of clarity about what might be included in that concept, please read their definition. In particular, we don't tolerate behavior that excludes people in socially marginalized groups.
15-
* Private harassment is also unacceptable. No matter who you are, if you feel you have been or are being harassed or made uncomfortable by a community member, please contact one of the channel ops or any of the [Rust moderation team](/team.html#Moderation) immediately. Whether you're a regular contributor or a newcomer, we care about making this community a safe place for you and we've got your back.
15+
* Private harassment is also unacceptable. No matter who you are, if you feel you have been or are being harassed or made uncomfortable by a community member, please contact one of the channel ops or any of the [Rust moderation team][mod_team] immediately. Whether you're a regular contributor or a newcomer, we care about making this community a safe place for you and we've got your back.
1616
* Likewise any spamming, trolling, flaming, baiting or other attention-stealing behaviour is not welcome.
1717

1818
## Moderation
1919

2020

21-
These are the policies for upholding our community's standards of conduct. If you feel that a thread needs moderation, please contact the [Rust moderation team](/team.html#Moderation).
21+
These are the policies for upholding our community's standards of conduct. If you feel that a thread needs moderation, please contact the [Rust moderation team][mod_team].
2222

2323
1. Remarks that violate the Rust standards of conduct, including hateful, hurtful, oppressive, or exclusionary remarks, are not allowed. (Cursing is allowed, but never targeting another user, and never in a hateful manner.)
2424
2. Remarks that moderators find inappropriate, whether listed in the code of conduct or not, are also not allowed.
@@ -35,4 +35,6 @@ And if someone takes issue with something you said or did, resist the urge to be
3535

3636
The enforcement policies listed above apply to all official Rust venues; including official IRC channels (#rust, #rust-internals, #rust-tools, #rust-libs, #rustc, #rust-beginners, #rust-docs, #rust-community, #rust-lang, and #cargo); GitHub repositories under rust-lang, rust-lang-nursery, and rust-lang-deprecated; and all forums under rust-lang.org (users.rust-lang.org, internals.rust-lang.org). For other projects adopting the Rust Code of Conduct, please contact the maintainers of those projects for enforcement. If you wish to use this code of conduct for your own project, consider explicitly mentioning your moderation policy or making a copy with your own moderation policy so as to avoid confusion.
3737

38-
*Adapted from the [Node.js Policy on Trolling](http://blog.izs.me/post/30036893703/policy-on-trolling) as well as the [Contributor Covenant v1.3.0](http://contributor-covenant.org/version/1/3/0/).*
38+
*Adapted from the [Node.js Policy on Trolling](http://blog.izs.me/post/30036893703/policy-on-trolling) as well as the [Contributor Covenant v1.3.0](https://www.contributor-covenant.org/version/1/3/0/).*
39+
40+
[mod_team]: https://www.rust-lang.org/team.html#Moderation-team

0 commit comments

Comments
 (0)