Skip to content

Commit 1b06fe1

Browse files
committed
Merge branch 'master' of https://github.com/rust-lang/rust into e0389
2 parents 6c649fb + 56714ac commit 1b06fe1

File tree

2,862 files changed

+33691
-21803
lines changed

Some content is hidden

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

2,862 files changed

+33691
-21803
lines changed

.travis.yml

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ matrix:
3030
SRC=.
3131
DEPLOY_ALT=1
3232
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
33-
SCCACHE_ERROR_LOG=/tmp/sccache.log
3433
MACOSX_DEPLOYMENT_TARGET=10.7
3534
NO_LLVM_ASSERTIONS=1
3635
NO_DEBUG_ASSERTIONS=1
@@ -50,27 +49,25 @@ matrix:
5049
RUST_CONFIGURE_ARGS="--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler"
5150
SRC=.
5251
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
53-
SCCACHE_ERROR_LOG=/tmp/sccache.log
5452
MACOSX_DEPLOYMENT_TARGET=10.8
5553
MACOSX_STD_DEPLOYMENT_TARGET=10.7
5654
NO_LLVM_ASSERTIONS=1
5755
NO_DEBUG_ASSERTIONS=1
5856
os: osx
59-
osx_image: xcode9.2
57+
osx_image: xcode9.3-moar
6058
if: branch = auto
6159
6260
- env: >
6361
RUST_CHECK_TARGET=check
6462
RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
6563
SRC=.
6664
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
67-
SCCACHE_ERROR_LOG=/tmp/sccache.log
6865
MACOSX_DEPLOYMENT_TARGET=10.8
6966
MACOSX_STD_DEPLOYMENT_TARGET=10.7
7067
NO_LLVM_ASSERTIONS=1
7168
NO_DEBUG_ASSERTIONS=1
7269
os: osx
73-
osx_image: xcode9.2
70+
osx_image: xcode9.3-moar
7471
if: branch = auto
7572
7673
# OSX builders producing releases. These do not run the full test suite and
@@ -85,7 +82,6 @@ matrix:
8582
SRC=.
8683
DEPLOY=1
8784
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
88-
SCCACHE_ERROR_LOG=/tmp/sccache.log
8985
MACOSX_DEPLOYMENT_TARGET=10.7
9086
NO_LLVM_ASSERTIONS=1
9187
NO_DEBUG_ASSERTIONS=1
@@ -99,7 +95,6 @@ matrix:
9995
SRC=.
10096
DEPLOY=1
10197
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
102-
SCCACHE_ERROR_LOG=/tmp/sccache.log
10398
MACOSX_DEPLOYMENT_TARGET=10.7
10499
NO_LLVM_ASSERTIONS=1
105100
NO_DEBUG_ASSERTIONS=1
@@ -176,14 +171,11 @@ matrix:
176171
if: branch = auto
177172
- env: IMAGE=x86_64-gnu-distcheck
178173
if: branch = auto
179-
- env: IMAGE=x86_64-gnu-incremental
180-
if: branch = auto
181174

182175
- stage: publish toolstate
183176
if: branch = master AND type = push
184177
before_install: []
185178
install: []
186-
cache: false
187179
sudo: false
188180
script:
189181
MESSAGE_FILE=$(mktemp -t msg.XXXXXX);
@@ -201,7 +193,12 @@ env:
201193
- secure: "cFh8thThqEJLC98XKI5pfqflUzOlxsYPRW20AWRaYOOgYHPTiGWypTXiPbGSKaeAXTZoOA+DpQtEmefc0U6lt9dHc7a/MIaK6isFurjlnKYiLOeTruzyu1z7PWCeZ/jKXsU2RK/88DBtlNwfMdaMIeuKj14IVfpepPPL71ETbuk="
202194

203195
before_install:
204-
- zcat $HOME/docker/rust-ci.tar.gz | docker load || true
196+
# We'll use the AWS cli to download/upload cached docker layers, so install
197+
# that here.
198+
- if [ "$TRAVIS_OS_NAME" = linux ]; then
199+
pip install --user awscli;
200+
export PATH=$PATH:$HOME/.local/bin;
201+
fi
205202
- mkdir -p $HOME/rustsrc
206203
# FIXME(#46924): these two commands are required to enable IPv6,
207204
# they shouldn't exist, please revert once more official solutions appeared.
@@ -223,7 +220,7 @@ install:
223220
travis_retry brew update &&
224221
travis_retry brew install xz;
225222
fi &&
226-
travis_retry curl -fo /usr/local/bin/sccache https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-05-12-sccache-x86_64-apple-darwin &&
223+
travis_retry curl -fo /usr/local/bin/sccache https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-04-02-sccache-x86_64-apple-darwin &&
227224
chmod +x /usr/local/bin/sccache &&
228225
travis_retry curl -fo /usr/local/bin/stamp https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-03-17-stamp-x86_64-apple-darwin &&
229226
chmod +x /usr/local/bin/stamp
@@ -264,44 +261,25 @@ after_failure:
264261
df -h;
265262
du . | sort -nr | head -n100
266263
267-
# One of these is the linux sccache log, one is the OSX sccache log. Instead
268-
# of worrying about what system we are just cat both. One of these commands
269-
# will fail but that's ok, they'll both get executed.
270-
- cat obj/tmp/sccache.log
271-
- cat /tmp/sccache.log
272-
273264
# Random attempt at debugging currently. Just poking around in here to see if
274265
# anything shows up.
275266
- ls -lat $HOME/Library/Logs/DiagnosticReports/
276267
- find $HOME/Library/Logs/DiagnosticReports
277268
-type f
269+
-name '*.crash'
278270
-not -name '*.stage2-*.crash'
279271
-not -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash'
280272
-exec printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" {} \;
281273
-exec head -750 {} \;
282-
-exec echo travis_fold":"end:crashlog \;
274+
-exec echo travis_fold":"end:crashlog \; || true
283275

284276
# attempt to debug anything killed by the oom killer on linux, just to see if
285277
# it happened
286278
- dmesg | grep -i kill
287279

288-
# Save tagged docker images we created and load them if they're available
289-
# Travis saves caches whether the build failed or not, nuke rustsrc if
290-
# the failure was while updating it (as it may be in a bad state)
291-
# https://github.com/travis-ci/travis-ci/issues/4472
292-
before_cache:
293-
- docker history -q rust-ci |
294-
grep -v missing |
295-
xargs docker save |
296-
gzip > $HOME/docker/rust-ci.tar.gz
297-
298280
notifications:
299281
email: false
300282

301-
cache:
302-
directories:
303-
- $HOME/docker
304-
305283
before_deploy:
306284
- mkdir -p deploy/$TRAVIS_COMMIT
307285
- >

CODE_OF_CONDUCT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ A version of this document [can be found online](https://www.rust-lang.org/condu
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.
14-
* 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.
14+
* We will exclude you from interaction if you insult, demean or harass anyone. That is not welcome behavior. 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.
1515
* 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.
16-
* Likewise any spamming, trolling, flaming, baiting or other attention-stealing behaviour is not welcome.
16+
* Likewise any spamming, trolling, flaming, baiting or other attention-stealing behavior is not welcome.
1717

1818
## Moderation
1919

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ As a reminder, all contributors are expected to follow our [Code of Conduct][coc
2626
## Feature Requests
2727
[feature-requests]: #feature-requests
2828

29-
To request a change to the way that the Rust language works, please open an
30-
issue in the [RFCs repository](https://github.com/rust-lang/rfcs/issues/new)
31-
rather than this one. New features and other significant language changes
32-
must go through the RFC process.
29+
To request a change to the way the Rust language works, please head over
30+
to the [RFCs repository](https://github.com/rust-lang/rfcs) and view the
31+
[README](https://github.com/rust-lang/rfcs/blob/master/README.md)
32+
for instructions.
3333

3434
## Bug Reports
3535
[bug-reports]: #bug-reports
@@ -594,7 +594,7 @@ If you're looking for somewhere to start, check out the [E-easy][eeasy] tag.
594594
[inom]: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3AI-nominated
595595
[eeasy]: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3AE-easy
596596
[lru]: https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-asc
597-
[rfcbot]: https://github.com/dikaiosune/rust-dashboard/blob/master/RFCBOT.md
597+
[rfcbot]: https://github.com/anp/rfcbot-rs/
598598

599599
## Out-of-tree Contributions
600600
[out-of-tree-contributions]: #out-of-tree-contributions

RELEASES.md

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,115 @@
1+
Version 1.25.0 (2018-03-29)
2+
==========================
3+
4+
Language
5+
--------
6+
- [Stabilised `#[repr(align(x))]`.][47006] [RFC 1358]
7+
- [You can now use nested groups of imports.][47948]
8+
e.g. `use std::{fs::File, io::Read, path::{Path, PathBuf}};`
9+
- [You can now have `|` at the start of a match arm.][47947] e.g.
10+
```rust
11+
enum Foo { A, B, C }
12+
13+
fn main() {
14+
let x = Foo::A;
15+
match x {
16+
| Foo::A
17+
| Foo::B => println!("AB"),
18+
| Foo::C => println!("C"),
19+
}
20+
}
21+
```
22+
23+
Compiler
24+
--------
25+
- [Upgraded to LLVM 6.][47828]
26+
- [Added `-C lto=val` option.][47521]
27+
- [Added `i586-unknown-linux-musl` target][47282]
28+
29+
Libraries
30+
---------
31+
- [Impl Send for `process::Command` on Unix.][47760]
32+
- [Impl PartialEq and Eq for `ParseCharError`.][47790]
33+
- [`UnsafeCell::into_inner` is now safe.][47204]
34+
- [Implement libstd for CloudABI.][47268]
35+
- [`Float::{from_bits, to_bits}` is now available in libcore.][46931]
36+
- [Implement `AsRef<Path>` for Component][46985]
37+
- [Implemented `Write` for `Cursor<&mut Vec<u8>>`][46830]
38+
- [Moved `Duration` to libcore.][46666]
39+
40+
Stabilized APIs
41+
---------------
42+
- [`Location::column`]
43+
- [`ptr::NonNull`]
44+
45+
The following functions can now be used in a constant expression.
46+
eg. `static MINUTE: Duration = Duration::from_secs(60);`
47+
- [`Duration::new`][47300]
48+
- [`Duration::from_secs`][47300]
49+
- [`Duration::from_millis`][47300]
50+
51+
Cargo
52+
-----
53+
- [`cargo new` no longer removes `rust` or `rs` prefixs/suffixs.][cargo/5013]
54+
- [`cargo new` now defaults to creating a binary crate, instead of a
55+
library crate.][cargo/5029]
56+
57+
Misc
58+
----
59+
- [Rust by example is now shipped with new releases][46196]
60+
61+
Compatibility Notes
62+
-------------------
63+
- [Deprecated `net::lookup_host`.][47510]
64+
- [`rustdoc` has switched to pulldown as the default markdown renderer.][47398]
65+
- The borrow checker was sometimes incorrectly permitting overlapping borrows
66+
around indexing operations (see [#47349][47349]). This has been fixed (which also
67+
enabled some correct code that used to cause errors (e.g. [#33903][33903] and [#46095][46095]).
68+
- [Removed deprecated unstable attribute `#[simd]`.][47251]
69+
70+
[33903]: https://github.com/rust-lang/rust/pull/33903
71+
[47947]: https://github.com/rust-lang/rust/pull/47947
72+
[47948]: https://github.com/rust-lang/rust/pull/47948
73+
[47760]: https://github.com/rust-lang/rust/pull/47760
74+
[47790]: https://github.com/rust-lang/rust/pull/47790
75+
[47828]: https://github.com/rust-lang/rust/pull/47828
76+
[47398]: https://github.com/rust-lang/rust/pull/47398
77+
[47510]: https://github.com/rust-lang/rust/pull/47510
78+
[47521]: https://github.com/rust-lang/rust/pull/47521
79+
[47204]: https://github.com/rust-lang/rust/pull/47204
80+
[47251]: https://github.com/rust-lang/rust/pull/47251
81+
[47268]: https://github.com/rust-lang/rust/pull/47268
82+
[47282]: https://github.com/rust-lang/rust/pull/47282
83+
[47300]: https://github.com/rust-lang/rust/pull/47300
84+
[47349]: https://github.com/rust-lang/rust/pull/47349
85+
[46931]: https://github.com/rust-lang/rust/pull/46931
86+
[46985]: https://github.com/rust-lang/rust/pull/46985
87+
[47006]: https://github.com/rust-lang/rust/pull/47006
88+
[46830]: https://github.com/rust-lang/rust/pull/46830
89+
[46095]: https://github.com/rust-lang/rust/pull/46095
90+
[46666]: https://github.com/rust-lang/rust/pull/46666
91+
[46196]: https://github.com/rust-lang/rust/pull/46196
92+
[cargo/5013]: https://github.com/rust-lang/cargo/pull/5013
93+
[cargo/5029]: https://github.com/rust-lang/cargo/pull/5029
94+
[RFC 1358]: https://github.com/rust-lang/rfcs/pull/1358
95+
[`Location::column`]: https://doc.rust-lang.org/std/panic/struct.Location.html#method.column
96+
[`ptr::NonNull`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html
97+
98+
99+
Version 1.24.1 (2018-03-01)
100+
==========================
101+
102+
- [Do not abort when unwinding through FFI][48251]
103+
- [Emit UTF-16 files for linker arguments on Windows][48318]
104+
- [Make the error index generator work again][48308]
105+
- [Cargo will warn on Windows 7 if an update is needed][cargo/5069].
106+
107+
[48251]: https://github.com/rust-lang/rust/issues/48251
108+
[48308]: https://github.com/rust-lang/rust/issues/48308
109+
[48318]: https://github.com/rust-lang/rust/issues/48318
110+
[cargo/5069]: https://github.com/rust-lang/cargo/pull/5069
111+
112+
1113
Version 1.24.0 (2018-02-15)
2114
==========================
3115

appveyor.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ environment:
2020
SCRIPT: python x.py test
2121
- MSYS_BITS: 32
2222
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-msvc
23-
SCRIPT: python x.py test --exclude src/test/run-pass --exclude src/test/compile-fail
23+
SCRIPT: make appveyor-subset-1
2424
- MSYS_BITS: 32
2525
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-msvc
26-
SCRIPT: python x.py test src/test/run-pass src/test/compile-fail
26+
SCRIPT: make appveyor-subset-2
2727

2828
# MSVC aux tests
2929
- MSYS_BITS: 64
@@ -53,13 +53,13 @@ environment:
5353
# SourceForge is notoriously flaky, so we mirror it on our own infrastructure.
5454
- MSYS_BITS: 32
5555
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu
56-
SCRIPT: python x.py test --exclude src/test/run-pass --exclude src/test/compile-fail
56+
SCRIPT: make appveyor-subset-1
5757
MINGW_URL: https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror
5858
MINGW_ARCHIVE: i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z
5959
MINGW_DIR: mingw32
6060
- MSYS_BITS: 32
6161
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu
62-
SCRIPT: python x.py test src/test/run-pass src/test/compile-fail
62+
SCRIPT: make appveyor-subset-2
6363
MINGW_URL: https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror
6464
MINGW_ARCHIVE: i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z
6565
MINGW_DIR: mingw32
@@ -152,8 +152,8 @@ install:
152152
- set PATH=C:\Python27;%PATH%
153153

154154
# Download and install sccache
155-
- appveyor-retry appveyor DownloadFile https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-05-12-sccache-x86_64-pc-windows-msvc
156-
- mv 2017-05-12-sccache-x86_64-pc-windows-msvc sccache.exe
155+
- appveyor-retry appveyor DownloadFile https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-04-02-sccache-x86_64-pc-windows-msvc
156+
- mv 2018-04-02-sccache-x86_64-pc-windows-msvc sccache.exe
157157
- set PATH=%PATH%;%CD%
158158

159159
# Download and install ninja
@@ -176,19 +176,13 @@ install:
176176
- set PATH=%PATH%;%CD%\handle
177177
- handle.exe -accepteula -help
178178

179-
# Attempt to debug sccache failures
180-
- set SCCACHE_ERROR_LOG=%CD%/sccache.log
181-
182179
test_script:
183180
- if not exist C:\cache\rustsrc\NUL mkdir C:\cache\rustsrc
184181
- sh src/ci/init_repo.sh . /c/cache/rustsrc
185182
- set SRC=.
186183
- set NO_CCACHE=1
187184
- sh src/ci/run.sh
188185

189-
on_failure:
190-
- cat %CD%\sccache.log || exit 0
191-
192186
branches:
193187
only:
194188
- auto

config.toml.example

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@
118118
# Indicate whether submodules are managed and updated automatically.
119119
#submodules = true
120120

121+
# Update submodules only when the checked out commit in the submodules differs
122+
# from what is committed in the main rustc repo.
123+
#fast-submodules = true
124+
121125
# The path to (or name of) the GDB executable to use. This is only used for
122126
# executing the debuginfo test suite.
123127
#gdb = "gdb"
@@ -182,6 +186,10 @@
182186
# essentially skipping stage0 as the local compiler is recompiling itself again.
183187
#local-rebuild = false
184188

189+
# Print out how long each rustbuild step took (mostly intended for CI and
190+
# tracking over time)
191+
#print-step-timings = false
192+
185193
# =============================================================================
186194
# General install configuration options
187195
# =============================================================================
@@ -239,11 +247,6 @@
239247
# compiler.
240248
#codegen-units = 1
241249

242-
# Whether to enable ThinLTO (and increase the codegen units to either a default
243-
# or the configured value). On by default. If we want the fastest possible
244-
# compiler, we should disable this.
245-
#thinlto = true
246-
247250
# Whether or not debug assertions are enabled for the compiler and standard
248251
# library. Also enables compilation of debug! and trace! logging macros.
249252
#debug-assertions = false
@@ -268,6 +271,9 @@
268271
# Whether or not `panic!`s generate backtraces (RUST_BACKTRACE)
269272
#backtrace = true
270273

274+
# Build rustc with experimental parallelization
275+
#experimental-parallel-queries = false
276+
271277
# The default linker that will be hard-coded into the generated compiler for
272278
# targets that don't specify linker explicitly in their target specifications.
273279
# Note that this is not the linker used to link said compiler.

0 commit comments

Comments
 (0)