Skip to content

Commit 395256a

Browse files
authored
Merge pull request #3 from rust-lang/master
update from origin 2020-06-15
2 parents d139a72 + f315c35 commit 395256a

File tree

677 files changed

+15725
-5435
lines changed

Some content is hidden

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

677 files changed

+15725
-5435
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ jobs:
102102
- name: install MSYS2
103103
run: src/ci/scripts/install-msys2.sh
104104
if: success() && !env.SKIP_JOB
105-
- name: install MSYS2 packages
106-
run: src/ci/scripts/install-msys2-packages.sh
107-
if: success() && !env.SKIP_JOB
108105
- name: install MinGW
109106
run: src/ci/scripts/install-mingw.sh
110107
if: success() && !env.SKIP_JOB
@@ -212,9 +209,6 @@ jobs:
212209
- name: install MSYS2
213210
run: src/ci/scripts/install-msys2.sh
214211
if: success() && !env.SKIP_JOB
215-
- name: install MSYS2 packages
216-
run: src/ci/scripts/install-msys2-packages.sh
217-
if: success() && !env.SKIP_JOB
218212
- name: install MinGW
219213
run: src/ci/scripts/install-mingw.sh
220214
if: success() && !env.SKIP_JOB
@@ -434,11 +428,6 @@ jobs:
434428
NO_DEBUG_ASSERTIONS: 1
435429
NO_LLVM_ASSERTIONS: 1
436430
os: windows-latest-xl
437-
- name: x86_64-msvc-aux
438-
env:
439-
RUST_CHECK_TARGET: check-aux EXCLUDE_CARGO=1
440-
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc"
441-
os: windows-latest-xl
442431
- name: x86_64-msvc-cargo
443432
env:
444433
SCRIPT: python x.py test src/tools/cargotest src/tools/cargo
@@ -564,9 +553,6 @@ jobs:
564553
- name: install MSYS2
565554
run: src/ci/scripts/install-msys2.sh
566555
if: success() && !env.SKIP_JOB
567-
- name: install MSYS2 packages
568-
run: src/ci/scripts/install-msys2-packages.sh
569-
if: success() && !env.SKIP_JOB
570556
- name: install MinGW
571557
run: src/ci/scripts/install-mingw.sh
572558
if: success() && !env.SKIP_JOB

Cargo.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ checksum = "716960a18f978640f25101b5cbf1c6f6b0d3192fab36a2d98ca96f0ecbe41010"
282282

283283
[[package]]
284284
name = "cargo"
285-
version = "0.46.0"
285+
version = "0.47.0"
286286
dependencies = [
287287
"anyhow",
288288
"atty",
@@ -1434,9 +1434,9 @@ dependencies = [
14341434

14351435
[[package]]
14361436
name = "hermit-abi"
1437-
version = "0.1.13"
1437+
version = "0.1.14"
14381438
source = "registry+https://github.com/rust-lang/crates.io-index"
1439-
checksum = "91780f809e750b0a89f5544be56617ff6b1227ee485bcb06ebe10cdf89bd3b71"
1439+
checksum = "b9586eedd4ce6b3c498bc3b4dd92fc9f11166aa908a914071953768066c67909"
14401440
dependencies = [
14411441
"compiler_builtins",
14421442
"libc",
@@ -1848,9 +1848,9 @@ dependencies = [
18481848

18491849
[[package]]
18501850
name = "libgit2-sys"
1851-
version = "0.12.5+1.0.0"
1851+
version = "0.12.7+1.0.0"
18521852
source = "registry+https://github.com/rust-lang/crates.io-index"
1853-
checksum = "3eadeec65514971355bf7134967a543f71372f35b53ac6c7143e7bd157f07535"
1853+
checksum = "bcd07968649bcb7b9351ecfde53ca4d27673cccfdf57c84255ec18710f3153e0"
18541854
dependencies = [
18551855
"cc",
18561856
"libc",

config.toml.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
# the same format as above, but since these targets are experimental, they are
7070
# not built by default and the experimental Rust compilation targets that depend
7171
# on them will not work unless the user opts in to building them.
72-
#experimental-targets = ""
72+
#experimental-targets = "AVR"
7373

7474
# Cap the number of parallel linker invocations when compiling LLVM.
7575
# This can be useful when building LLVM with debug info, which significantly

src/bootstrap/builder.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ pub trait Step: 'static + Clone + Debug + PartialEq + Eq + Hash {
5252
/// it's been assembled.
5353
type Output: Clone;
5454

55+
/// Whether this step is run by default as part of its respective phase.
56+
/// `true` here can still be overwritten by `should_run` calling `default_condition`.
5557
const DEFAULT: bool = false;
5658

5759
/// If true, then this rule should be skipped if --target was specified, but --host was not
@@ -371,7 +373,6 @@ impl<'a> Builder<'a> {
371373
test::UiFullDeps,
372374
test::Rustdoc,
373375
test::Pretty,
374-
test::RunPassValgrindPretty,
375376
test::Crate,
376377
test::CrateLibrustc,
377378
test::CrateRustdoc,

src/bootstrap/compile.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,13 @@ pub fn stream_cargo(
983983
for line in stdout.lines() {
984984
let line = t!(line);
985985
match serde_json::from_str::<CargoMessage<'_>>(&line) {
986-
Ok(msg) => cb(msg),
986+
Ok(msg) => {
987+
if builder.config.json_output {
988+
// Forward JSON to stdout.
989+
println!("{}", line);
990+
}
991+
cb(msg)
992+
}
987993
// If this was informational, just print it out and continue
988994
Err(_) => println!("{}", line),
989995
}

src/bootstrap/dist.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -619,19 +619,21 @@ impl Step for DebuggerScripts {
619619
cp_debugger_script("natvis/libcore.natvis");
620620
cp_debugger_script("natvis/libstd.natvis");
621621
} else {
622-
cp_debugger_script("debugger_pretty_printers_common.py");
622+
cp_debugger_script("rust_types.py");
623623

624624
// gdb debugger scripts
625625
builder.install(&builder.src.join("src/etc/rust-gdb"), &sysroot.join("bin"), 0o755);
626626
builder.install(&builder.src.join("src/etc/rust-gdbgui"), &sysroot.join("bin"), 0o755);
627627

628628
cp_debugger_script("gdb_load_rust_pretty_printers.py");
629-
cp_debugger_script("gdb_rust_pretty_printing.py");
629+
cp_debugger_script("gdb_lookup.py");
630+
cp_debugger_script("gdb_providers.py");
630631

631632
// lldb debugger scripts
632633
builder.install(&builder.src.join("src/etc/rust-lldb"), &sysroot.join("bin"), 0o755);
633634

634-
cp_debugger_script("lldb_rust_formatters.py");
635+
cp_debugger_script("lldb_lookup.py");
636+
cp_debugger_script("lldb_providers.py");
635637
}
636638
}
637639
}

src/bootstrap/mk/Makefile.in

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ Q := @
66
BOOTSTRAP_ARGS :=
77
endif
88

9-
ifdef EXCLUDE_CARGO
10-
AUX_ARGS :=
11-
else
12-
AUX_ARGS := src/tools/cargo src/tools/cargotest
13-
endif
14-
159
BOOTSTRAP := $(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap.py
1610

1711
all:
@@ -48,8 +42,8 @@ check:
4842
$(Q)$(BOOTSTRAP) test $(BOOTSTRAP_ARGS)
4943
check-aux:
5044
$(Q)$(BOOTSTRAP) test \
51-
src/test/run-pass-valgrind/pretty \
52-
$(AUX_ARGS) \
45+
src/tools/cargo \
46+
src/tools/cargotest \
5347
$(BOOTSTRAP_ARGS)
5448
check-bootstrap:
5549
$(Q)$(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap_test.py

src/bootstrap/native.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl Step for Llvm {
144144

145145
let llvm_exp_targets = match builder.config.llvm_experimental_targets {
146146
Some(ref s) => s,
147-
None => "",
147+
None => "AVR",
148148
};
149149

150150
let assertions = if builder.config.llvm_assertions { "ON" } else { "OFF" };

src/bootstrap/test.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ impl Step for Cargotest {
154154
fn run(self, builder: &Builder<'_>) {
155155
let compiler = builder.compiler(self.stage, self.host);
156156
builder.ensure(compile::Rustc { compiler, target: compiler.host });
157+
let cargo = builder.ensure(tool::Cargo { compiler, target: compiler.host });
157158

158159
// Note that this is a short, cryptic, and not scoped directory name. This
159160
// is currently to minimize the length of path on Windows where we otherwise
@@ -165,7 +166,7 @@ impl Step for Cargotest {
165166
let mut cmd = builder.tool_cmd(Tool::CargoTest);
166167
try_run(
167168
builder,
168-
cmd.arg(&builder.initial_cargo)
169+
cmd.arg(&cargo)
169170
.arg(&out_dir)
170171
.env("RUSTC", builder.rustc(compiler))
171172
.env("RUSTDOC", builder.rustdoc(compiler)),
@@ -553,7 +554,7 @@ impl Step for Clippy {
553554

554555
builder.add_rustc_lib_path(compiler, &mut cargo);
555556

556-
try_run(builder, &mut cargo.into());
557+
builder.run(&mut cargo.into());
557558
}
558559
}
559560

@@ -929,13 +930,6 @@ host_test!(UiFullDeps { path: "src/test/ui-fulldeps", mode: "ui", suite: "ui-ful
929930
host_test!(Rustdoc { path: "src/test/rustdoc", mode: "rustdoc", suite: "rustdoc" });
930931

931932
host_test!(Pretty { path: "src/test/pretty", mode: "pretty", suite: "pretty" });
932-
test!(RunPassValgrindPretty {
933-
path: "src/test/run-pass-valgrind/pretty",
934-
mode: "pretty",
935-
suite: "run-pass-valgrind",
936-
default: false,
937-
host: true
938-
});
939933

940934
default_test!(RunMake { path: "src/test/run-make", mode: "run-make", suite: "run-make" });
941935

src/bootstrap/tool.rs

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ macro_rules! tool_extended {
595595
$toolstate:ident,
596596
$path:expr,
597597
$tool_name:expr,
598+
stable = $stable:expr,
598599
$extra_deps:block;)+) => {
599600
$(
600601
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
@@ -606,17 +607,22 @@ macro_rules! tool_extended {
606607

607608
impl Step for $name {
608609
type Output = Option<PathBuf>;
609-
const DEFAULT: bool = true;
610+
const DEFAULT: bool = true; // Overwritten below
610611
const ONLY_HOSTS: bool = true;
611612

612613
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
613614
let builder = run.builder;
614615
run.path($path).default_condition(
615616
builder.config.extended
616-
&& builder.config.tools.as_ref().map_or(true, |tools| {
617-
tools.iter().any(|tool| match tool.as_ref() {
618-
"clippy" => $tool_name == "clippy-driver",
619-
x => $tool_name == x,
617+
&& builder.config.tools.as_ref().map_or(
618+
// By default, on nightly/dev enable all tools, else only
619+
// build stable tools.
620+
$stable || builder.build.unstable_features(),
621+
// If `tools` is set, search list for this tool.
622+
|tools| {
623+
tools.iter().any(|tool| match tool.as_ref() {
624+
"clippy" => $tool_name == "clippy-driver",
625+
x => $tool_name == x,
620626
})
621627
}),
622628
)
@@ -652,20 +658,20 @@ macro_rules! tool_extended {
652658
// Note: tools need to be also added to `Builder::get_step_descriptions` in `build.rs`
653659
// to make `./x.py build <tool>` work.
654660
tool_extended!((self, builder),
655-
Cargofmt, rustfmt, "src/tools/rustfmt", "cargo-fmt", {};
656-
CargoClippy, clippy, "src/tools/clippy", "cargo-clippy", {};
657-
Clippy, clippy, "src/tools/clippy", "clippy-driver", {};
658-
Miri, miri, "src/tools/miri", "miri", {};
659-
CargoMiri, miri, "src/tools/miri/cargo-miri", "cargo-miri", {};
660-
Rls, rls, "src/tools/rls", "rls", {
661+
Cargofmt, rustfmt, "src/tools/rustfmt", "cargo-fmt", stable=true, {};
662+
CargoClippy, clippy, "src/tools/clippy", "cargo-clippy", stable=true, {};
663+
Clippy, clippy, "src/tools/clippy", "clippy-driver", stable=true, {};
664+
Miri, miri, "src/tools/miri", "miri", stable=false, {};
665+
CargoMiri, miri, "src/tools/miri/cargo-miri", "cargo-miri", stable=false, {};
666+
Rls, rls, "src/tools/rls", "rls", stable=true, {
661667
builder.ensure(Clippy {
662668
compiler: self.compiler,
663669
target: self.target,
664670
extra_features: Vec::new(),
665671
});
666672
self.extra_features.push("clippy".to_owned());
667673
};
668-
Rustfmt, rustfmt, "src/tools/rustfmt", "rustfmt", {};
674+
Rustfmt, rustfmt, "src/tools/rustfmt", "rustfmt", stable=true, {};
669675
);
670676

671677
impl<'a> Builder<'a> {

src/ci/azure-pipelines/auto.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,6 @@ jobs:
142142
# FIXME(#59637)
143143
NO_DEBUG_ASSERTIONS: 1
144144
NO_LLVM_ASSERTIONS: 1
145-
# MSVC aux tests
146-
x86_64-msvc-aux:
147-
RUST_CHECK_TARGET: check-aux EXCLUDE_CARGO=1
148-
INITIAL_RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc
149145
x86_64-msvc-cargo:
150146
SCRIPT: python x.py test src/tools/cargotest src/tools/cargo
151147
INITIAL_RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-lld

src/ci/azure-pipelines/steps/run.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ steps:
8282
displayName: Install msys2
8383
condition: and(succeeded(), not(variables.SKIP_JOB))
8484

85-
- bash: src/ci/scripts/install-msys2-packages.sh
86-
displayName: Install msys2 packages
87-
condition: and(succeeded(), not(variables.SKIP_JOB))
88-
8985
- bash: src/ci/scripts/install-mingw.sh
9086
displayName: Install MinGW
9187
condition: and(succeeded(), not(variables.SKIP_JOB))

src/ci/docker/scripts/musl-toolchain.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Versions of the toolchain components are configurable in `musl-cross-make/Makefile` and
55
# musl unlike GLIBC is forward compatible so upgrading it shouldn't break old distributions.
6-
# Right now we have: Binutils 2.27, GCC 6.4.0, musl 1.1.22.
6+
# Right now we have: Binutils 2.31.1, GCC 9.2.0, musl 1.1.24.
77
set -ex
88

99
hide_output() {
@@ -33,11 +33,13 @@ shift
3333
# Apparently applying `-fPIC` everywhere allows them to link successfully.
3434
export CFLAGS="-fPIC $CFLAGS"
3535

36-
git clone https://github.com/richfelker/musl-cross-make -b v0.9.8
36+
git clone https://github.com/richfelker/musl-cross-make # -b v0.9.9
3737
cd musl-cross-make
38+
# A few commits ahead of v0.9.9 to include the cowpatch fix:
39+
git checkout a54eb56f33f255dfca60be045f12a5cfaf5a72a9
3840

39-
hide_output make -j$(nproc) TARGET=$TARGET
40-
hide_output make install TARGET=$TARGET OUTPUT=$OUTPUT
41+
hide_output make -j$(nproc) TARGET=$TARGET MUSL_VER=1.1.24
42+
hide_output make install TARGET=$TARGET MUSL_VER=1.1.24 OUTPUT=$OUTPUT
4143

4244
cd -
4345

src/ci/docker/scripts/musl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ shift
2424
# Apparently applying `-fPIC` everywhere allows them to link successfully.
2525
export CFLAGS="-fPIC $CFLAGS"
2626

27-
MUSL=musl-1.1.22
27+
MUSL=musl-1.1.24
2828

2929
# may have been downloaded in a previous run
3030
if [ ! -d $MUSL ]; then

src/ci/docker/wasm32/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ ENV PATH=$PATH:/emsdk-portable
2727
ENV PATH=$PATH:/emsdk-portable/upstream/emscripten/
2828
ENV PATH=$PATH:/emsdk-portable/node/12.9.1_64bit/bin/
2929
ENV BINARYEN_ROOT=/emsdk-portable/upstream/
30+
ENV EMSDK=/emsdk-portable
31+
ENV EM_CONFIG=/emsdk-portable/.emscripten
32+
ENV EM_CACHE=/emsdk-portable/upstream/emscripten/cache
3033

3134
ENV TARGETS=wasm32-unknown-emscripten
3235

src/ci/github-actions/ci.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,6 @@ x--expand-yaml-anchors--remove:
147147
run: src/ci/scripts/install-msys2.sh
148148
<<: *step
149149

150-
- name: install MSYS2 packages
151-
run: src/ci/scripts/install-msys2-packages.sh
152-
<<: *step
153-
154150
- name: install MinGW
155151
run: src/ci/scripts/install-mingw.sh
156152
<<: *step
@@ -496,12 +492,6 @@ jobs:
496492
NO_LLVM_ASSERTIONS: 1
497493
<<: *job-windows-xl
498494

499-
- name: x86_64-msvc-aux
500-
env:
501-
RUST_CHECK_TARGET: check-aux EXCLUDE_CARGO=1
502-
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc
503-
<<: *job-windows-xl
504-
505495
- name: x86_64-msvc-cargo
506496
env:
507497
SCRIPT: python x.py test src/tools/cargotest src/tools/cargo

src/ci/scripts/install-msys2-packages.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)