Skip to content

Commit 439f752

Browse files
committed
Auto merge of #45386 - kennytm:rollup, r=kennytm
Rollup of 8 pull requests - Successful merges: #45343, #45349, #45352, #45374, #45375, #45376, #45377, #45382 - Failed merges:
2 parents 8b45c24 + 4371862 commit 439f752

Some content is hidden

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

62 files changed

+88
-87
lines changed

src/bootstrap/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ configure your directory to use this build, like so:
129129
# configure to use local rust instead of downloading a beta.
130130
# `--local-rust-root` is optional here. If elided, we will
131131
# use whatever rustc we find on your PATH.
132-
> configure --enable-rustbuild --local-rust-root=~/.cargo/ --enable-local-rebuild
132+
> ./configure --local-rust-root=~/.cargo/ --enable-local-rebuild
133133
```
134134

135135
After that, you can use the `--incremental` flag to actually do
136136
incremental builds:
137137

138138
```
139-
> ../x.py build --incremental
139+
> ./x.py build --incremental
140140
```
141141

142142
The `--incremental` flag will store incremental compilation artifacts

src/bootstrap/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def program_config(self, program):
532532
"""
533533
config = self.get_toml(program)
534534
if config:
535-
return config
535+
return os.path.expanduser(config)
536536
return os.path.join(self.bin_root(), "bin", "{}{}".format(
537537
program, self.exe_suffix()))
538538

src/bootstrap/dist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ impl Step for Analysis {
630630
let image = tmpdir(build).join(format!("{}-{}-image", name, target));
631631

632632
let src = build.stage_out(compiler, Mode::Libstd)
633-
.join(target).join("release").join("deps");
633+
.join(target).join(build.cargo_dir()).join("deps");
634634

635635
let image_src = src.join("save-analysis");
636636
let dst = image.join("lib/rustlib").join(target).join("analysis");

src/ci/docker/asmjs/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1616
COPY scripts/emscripten.sh /scripts/
1717
RUN bash /scripts/emscripten.sh
1818

19+
COPY scripts/sccache.sh /scripts/
20+
RUN sh /scripts/sccache.sh
21+
1922
ENV PATH=$PATH:/emsdk-portable
2023
ENV PATH=$PATH:/emsdk-portable/clang/e1.37.13_64bit/
2124
ENV PATH=$PATH:/emsdk-portable/emscripten/1.37.13/
@@ -28,7 +31,4 @@ ENV TARGETS=asmjs-unknown-emscripten
2831

2932
ENV RUST_CONFIGURE_ARGS --target=$TARGETS
3033

31-
ENV SCRIPT python2.7 ../x.py test --target $TARGETS
32-
33-
COPY scripts/sccache.sh /scripts/
34-
RUN sh /scripts/sccache.sh
34+
ENV SCRIPT python2.7 ../x.py test --target $TARGETS src/test/run-pass

src/ci/docker/cross2/build-solaris-toolchain.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,37 +38,38 @@ cd solaris
3838

3939
dpkg --add-architecture $APT_ARCH
4040
apt-get update
41-
apt-get download \
42-
libc:$APT_ARCH \
41+
apt-get download $(apt-cache depends --recurse --no-replaces \
4342
libc-dev:$APT_ARCH \
44-
libm:$APT_ARCH \
4543
libm-dev:$APT_ARCH \
46-
libpthread:$APT_ARCH \
4744
libpthread-dev:$APT_ARCH \
48-
libresolv:$APT_ARCH \
4945
libresolv-dev:$APT_ARCH \
50-
librt:$APT_ARCH \
5146
librt-dev:$APT_ARCH \
52-
libsocket:$APT_ARCH \
5347
libsocket-dev:$APT_ARCH \
5448
system-crt:$APT_ARCH \
55-
system-header:$APT_ARCH
49+
system-header:$APT_ARCH \
50+
| grep "^\w")
5651

5752
for deb in *$APT_ARCH.deb; do
5853
dpkg -x $deb .
5954
done
6055

61-
# Strip Solaris 11 functions that are optionally used by libbacktrace.
56+
# Remove Solaris 11 functions that are optionally used by libbacktrace.
6257
# This is for Solaris 10 compatibility.
63-
$ARCH-sun-solaris2.10-strip -N dl_iterate_phdr -N strnlen lib/$LIB_ARCH/libc.so
58+
rm usr/include/link.h
59+
patch -p0 << 'EOF'
60+
--- usr/include/string.h
61+
+++ usr/include/string10.h
62+
@@ -93 +92,0 @@
63+
-extern size_t strnlen(const char *, size_t);
64+
EOF
6465

6566
mkdir /usr/local/$ARCH-sun-solaris2.10/usr
6667
mv usr/include /usr/local/$ARCH-sun-solaris2.10/usr/include
6768
mv usr/lib/$LIB_ARCH/* /usr/local/$ARCH-sun-solaris2.10/lib
6869
mv lib/$LIB_ARCH/* /usr/local/$ARCH-sun-solaris2.10/lib
6970

70-
ln -s /usr/local/$ARCH-sun-solaris2.10/usr/include /usr/local/$ARCH-sun-solaris2.10/sys-include
71-
ln -s /usr/local/$ARCH-sun-solaris2.10/usr/include /usr/local/$ARCH-sun-solaris2.10/include
71+
ln -s usr/include /usr/local/$ARCH-sun-solaris2.10/sys-include
72+
ln -s usr/include /usr/local/$ARCH-sun-solaris2.10/include
7273

7374
cd ..
7475
rm -rf solaris
@@ -97,8 +98,7 @@ hide_output ../gcc-$GCC/configure \
9798
--disable-libada \
9899
--disable-libsanitizer \
99100
--disable-libquadmath-support \
100-
--disable-lto \
101-
--with-sysroot=/usr/local/$ARCH-sun-solaris2.10
101+
--disable-lto
102102

103103
hide_output make -j10
104104
hide_output make install

src/liballoc/str.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,13 +959,15 @@ impl str {
959959
/// assert_eq!(s.find("Léopard"), Some(13));
960960
/// ```
961961
///
962-
/// More complex patterns with closures:
962+
/// More complex patterns using point-free style and closures:
963963
///
964964
/// ```
965965
/// let s = "Löwe 老虎 Léopard";
966966
///
967967
/// assert_eq!(s.find(char::is_whitespace), Some(5));
968968
/// assert_eq!(s.find(char::is_lowercase), Some(1));
969+
/// assert_eq!(s.find(|c: char| c.is_whitespace() || c.is_lowercase()), Some(1));
970+
/// assert_eq!(s.find(|c: char| (c < 'o') && (c > 'a')), Some(4));
969971
/// ```
970972
///
971973
/// Not finding the pattern:

src/librustc/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ entire program, and each did a particular check of transformation.
9898
We are gradually replacing this pass-based code with an alternative
9999
setup based on on-demand **queries**. In the query-model, we work
100100
backwards, executing a *query* that expresses our ultimate goal (e.g.,
101-
"compiler this crate"). This query in turn may make other queries
101+
"compile this crate"). This query in turn may make other queries
102102
(e.g., "get me a list of all modules in the crate"). Those queries
103103
make other queries that ultimately bottom out in the base operations,
104104
like parsing the input, running the type-checker, and so forth. This
@@ -162,7 +162,7 @@ The compiler uses a number of...idiosyncratic abbreviations and
162162
things. This glossary attempts to list them and give you a few
163163
pointers for understanding them better.
164164

165-
- AST -- the **abstract syntax tree** produced the `syntax` crate; reflects user syntax
165+
- AST -- the **abstract syntax tree** produced by the `syntax` crate; reflects user syntax
166166
very closely.
167167
- codegen unit -- when we produce LLVM IR, we group the Rust code into a number of codegen
168168
units. Each of these units is processed by LLVM independently from one another,

src/librustc/ty/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ wasteful.
4242
Often, we wish to write code that explicitly asserts that it is not
4343
taking place during inference. In that case, there is no "local"
4444
arena, and all the types that you can access are allocated in the
45-
global arena. To express this, the idea is to us the same lifetime
45+
global arena. To express this, the idea is to use the same lifetime
4646
for the `'gcx` and `'tcx` parameters of `TyCtxt`. Just to be a touch
4747
confusing, we tend to use the name `'tcx` in such contexts. Here is an
4848
example:
@@ -100,10 +100,10 @@ fn test_type<'tcx>(ty: Ty<'tcx>) {
100100

101101
The `sty` field (the origin of this name is unclear to me; perhaps
102102
structural type?) is of type `TypeVariants<'tcx>`, which is an enum
103-
definined all of the different kinds of types in the compiler.
103+
defining all of the different kinds of types in the compiler.
104104

105105
> NB: inspecting the `sty` field on types during type inference can be
106-
> risky, as there are may be inference variables and other things to
106+
> risky, as there may be inference variables and other things to
107107
> consider, or sometimes types are not yet known that will become
108108
> known later.).
109109
@@ -132,7 +132,7 @@ a safe approximation, so that is what you get back.
132132
> you are going to be testing for type equality, you probably need to
133133
> start looking into the inference code to do it right.
134134
135-
You can also find various common types in the tcx itself by accessing
135+
You can also find various common types in the `tcx` itself by accessing
136136
`tcx.types.bool`, `tcx.types.char`, etc (see `CommonTypes` for more).
137137

138138
### Beyond types: Other kinds of arena-allocated data structures
@@ -143,7 +143,7 @@ module. Here are a few examples:
143143

144144
- `Substs`, allocated with `mk_substs` -- this will intern a slice of types, often used to
145145
specify the values to be substituted for generics (e.g., `HashMap<i32, u32>`
146-
would be represented as a slice `&'tcx [tcx.types.i32, tcx.types.u32]`.
146+
would be represented as a slice `&'tcx [tcx.types.i32, tcx.types.u32]`).
147147
- `TraitRef`, typically passed by value -- a **trait reference**
148148
consists of a reference to a trait along with its various type
149149
parameters (including `Self`), like `i32: Display` (here, the def-id

src/test/compile-fail/macro-expanded-include/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-emscripten
11+
// ignore-emscripten no asm! support
1212

1313
#![feature(asm, rustc_attrs)]
1414
#![allow(unused)]

src/test/run-pass/asm-concat-src.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// pretty-expanded FIXME #23616
12-
// ignore-emscripten
12+
// ignore-emscripten no asm
1313

1414
#![feature(asm)]
1515

src/test/run-pass/command-before-exec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// ignore-windows - this is a unix-specific test
12-
// ignore-emscripten
12+
// ignore-emscripten no processes
1313

1414
#![feature(process_exec, libc)]
1515

src/test/run-pass/command-exec.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
// ignore-windows - this is a unix-specific test
1212
// ignore-pretty issue #37199
13-
// ignore-emscripten
13+
// ignore-emscripten no processes
14+
1415
#![feature(process_exec)]
1516

1617
use std::env;

src/test/run-pass/core-run-destroy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// compile-flags:--test
12-
// ignore-emscripten
12+
// ignore-emscripten no processes
1313

1414
// NB: These tests kill child processes. Valgrind sees these children as leaking
1515
// memory, which makes for some *confusing* logs. That's why these are here

src/test/run-pass/env-args-reverse-iterator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

1313
use std::env::args;
1414
use std::process::Command;

src/test/run-pass/env-funky-keys.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// ignore-android
1414
// ignore-windows
15-
// ignore-emscripten
15+
// ignore-emscripten no execve
1616
// no-prefer-dynamic
1717

1818
#![feature(libc)]

src/test/run-pass/env-home-dir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-emscripten
11+
// ignore-emscripten env vars don't work?
1212

1313
#![feature(path)]
1414

src/test/run-pass/extern-pass-empty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// pretty-expanded FIXME #23616
1414
// ignore-msvc
15-
// ignore-emscripten
15+
// ignore-emscripten emcc asserts on an empty struct as an argument
1616

1717
#[repr(C)]
1818
struct TwoU8s {

src/test/run-pass/fds-are-cloexec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// ignore-windows
1212
// ignore-android
13-
// ignore-emscripten
13+
// ignore-emscripten no processes
1414
// ignore-haiku
1515

1616
#![feature(libc)]

src/test/run-pass/format-no-std.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-emscripten missing rust_begin_unwind
11+
// ignore-emscripten no no_std executables
1212

1313
#![feature(lang_items, start, alloc)]
1414
#![no_std]

src/test/run-pass/generator/smoke.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-emscripten
11+
// ignore-emscripten no threads support
1212
// compile-flags: --test
1313

1414
#![feature(generators, generator_trait)]

src/test/run-pass/i128.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-emscripten
11+
// ignore-emscripten i128 doesn't work
1212

1313
#![feature(i128_type, test)]
1414

src/test/run-pass/issue-10626.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

1313
// Make sure that if a process doesn't have its stdio/stderr descriptors set up
1414
// that we don't die in a large ball of fire

src/test/run-pass/issue-13304.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
12+
1213
#![feature(io, process_capture)]
1314

1415
use std::env;

src/test/run-pass/issue-14456.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

1313
#![feature(io, process_capture)]
1414

src/test/run-pass/issue-14940.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

1313
use std::env;
1414
use std::process::Command;

src/test/run-pass/issue-16272.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
1212

1313
use std::process::Command;
1414
use std::env;

src/test/run-pass/issue-20091.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-emscripten
11+
// ignore-emscripten no processes
12+
1213
#![feature(std_misc, os)]
1314

1415
#[cfg(unix)]

src/test/run-pass/issue-2190-1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// pretty-expanded FIXME #23616
12-
// ignore-emscripten
12+
// ignore-emscripten no threads
1313

1414
use std::thread::Builder;
1515

src/test/run-pass/issue-24313.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-emscripten
11+
// ignore-emscripten no threads
1212

1313
use std::thread;
1414
use std::env;

src/test/run-pass/issue-28950.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-emscripten
11+
// ignore-emscripten no threads
1212
// compile-flags: -O
1313

1414
// Tests that the `vec!` macro does not overflow the stack when it is

src/test/run-pass/issue-29485.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:issue-29485.rs
12-
// ignore-emscripten
12+
// ignore-emscripten no threads
1313

1414
#[feature(recover)]
1515

0 commit comments

Comments
 (0)