Skip to content

Commit 51b2ca5

Browse files
authored
Merge branch 'master' into feature/shared-fn
2 parents b0e188e + 199b7e2 commit 51b2ca5

File tree

1,385 files changed

+15713
-11221
lines changed

Some content is hidden

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

1,385 files changed

+15713
-11221
lines changed

.travis.yml

+7-36
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,7 +49,6 @@ 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
@@ -64,7 +62,6 @@ matrix:
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
@@ -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
@@ -183,7 +178,6 @@ matrix:
183178
if: branch = master AND type = push
184179
before_install: []
185180
install: []
186-
cache: false
187181
sudo: false
188182
script:
189183
MESSAGE_FILE=$(mktemp -t msg.XXXXXX);
@@ -201,7 +195,12 @@ env:
201195
- secure: "cFh8thThqEJLC98XKI5pfqflUzOlxsYPRW20AWRaYOOgYHPTiGWypTXiPbGSKaeAXTZoOA+DpQtEmefc0U6lt9dHc7a/MIaK6isFurjlnKYiLOeTruzyu1z7PWCeZ/jKXsU2RK/88DBtlNwfMdaMIeuKj14IVfpepPPL71ETbuk="
202196

203197
before_install:
204-
- zcat $HOME/docker/rust-ci.tar.gz | docker load || true
198+
# We'll use the AWS cli to download/upload cached docker layers, so install
199+
# that here.
200+
- if [ "$TRAVIS_OS_NAME" = linux ]; then
201+
pip install --user awscli;
202+
export PATH=$PATH:$HOME/.local/bin;
203+
fi
205204
- mkdir -p $HOME/rustsrc
206205
# FIXME(#46924): these two commands are required to enable IPv6,
207206
# they shouldn't exist, please revert once more official solutions appeared.
@@ -223,7 +222,7 @@ install:
223222
travis_retry brew update &&
224223
travis_retry brew install xz;
225224
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 &&
225+
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 &&
227226
chmod +x /usr/local/bin/sccache &&
228227
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 &&
229228
chmod +x /usr/local/bin/stamp
@@ -264,12 +263,6 @@ after_failure:
264263
df -h;
265264
du . | sort -nr | head -n100
266265
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-
273266
# Random attempt at debugging currently. Just poking around in here to see if
274267
# anything shows up.
275268
- ls -lat $HOME/Library/Logs/DiagnosticReports/
@@ -286,23 +279,9 @@ after_failure:
286279
# it happened
287280
- dmesg | grep -i kill
288281

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

302-
cache:
303-
directories:
304-
- $HOME/docker
305-
306285
before_deploy:
307286
- mkdir -p deploy/$TRAVIS_COMMIT
308287
- >
@@ -318,8 +297,6 @@ before_deploy:
318297

319298
deploy:
320299
- provider: s3
321-
edge:
322-
branch: s3-eager-autoload
323300
bucket: rust-lang-ci2
324301
skip_cleanup: true
325302
local_dir: deploy
@@ -336,8 +313,6 @@ deploy:
336313
# this is the same as the above deployment provider except that it uploads to
337314
# a slightly different directory and has a different trigger
338315
- provider: s3
339-
edge:
340-
branch: s3-eager-autoload
341316
bucket: rust-lang-ci2
342317
skip_cleanup: true
343318
local_dir: deploy
@@ -355,8 +330,6 @@ deploy:
355330
# try branch. Travis does not appear to provide a way to use "or" in these
356331
# conditions.
357332
- provider: s3
358-
edge:
359-
branch: s3-eager-autoload
360333
bucket: rust-lang-ci2
361334
skip_cleanup: true
362335
local_dir: deploy
@@ -371,8 +344,6 @@ deploy:
371344
condition: $DEPLOY = 1
372345

373346
- provider: s3
374-
edge:
375-
branch: s3-eager-autoload
376347
bucket: rust-lang-ci2
377348
skip_cleanup: true
378349
local_dir: deploy

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -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

+112
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

+6-12
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

+7
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@
186186
# essentially skipping stage0 as the local compiler is recompiling itself again.
187187
#local-rebuild = false
188188

189+
# Print out how long each rustbuild step took (mostly intended for CI and
190+
# tracking over time)
191+
#print-step-timings = false
192+
189193
# =============================================================================
190194
# General install configuration options
191195
# =============================================================================
@@ -267,6 +271,9 @@
267271
# Whether or not `panic!`s generate backtraces (RUST_BACKTRACE)
268272
#backtrace = true
269273

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

0 commit comments

Comments
 (0)