Skip to content

Commit ccba43d

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents f9f71cc + 664c779 commit ccba43d

File tree

16,516 files changed

+33961
-140601
lines changed

Some content is hidden

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

16,516 files changed

+33961
-140601
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ __pycache__/
1313
.settings/
1414
.valgrindrc
1515
.vscode/
16+
.favorites.json
1617
/*-*-*-*/
1718
/*-*-*/
1819
/Makefile

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@
4141
[submodule "src/tools/lld"]
4242
path = src/tools/lld
4343
url = https://github.com/rust-lang/lld.git
44-
[submodule "src/libbacktrace"]
45-
path = src/libbacktrace
46-
url = https://github.com/rust-lang-nursery/libbacktrace.git
4744
[submodule "src/tools/lldb"]
4845
path = src/tools/lldb
4946
url = https://github.com/rust-lang-nursery/lldb.git

.travis.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: shell
22
sudo: required
3-
dist: trusty
3+
dist: xenial
44
services:
55
- docker
66
addons:
@@ -248,6 +248,15 @@ before_script:
248248
# Enable core dump on Linux.
249249
sudo sh -c 'echo "/checkout/obj/cores/core.%p.%E" > /proc/sys/kernel/core_pattern';
250250
fi
251+
- >
252+
if [ "$IMAGE" = mingw-check ]; then
253+
# verify the publish_toolstate script works.
254+
git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git;
255+
cd rust-toolstate;
256+
python2.7 "$TRAVIS_BUILD_DIR/src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" "$(git log --format=%s -n1 HEAD)" "" "";
257+
cd ..;
258+
rm -rf rust-toolstate;
259+
fi
251260
252261
# Log time information from this machine and an external machine for insight into possible
253262
# clock drift. Timezones don't matter since relative deltas give all the necessary info.

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +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](https://www.contributor-covenant.org/version/1/3/0/).*
38+
*Adapted from the [Node.js Policy on Trolling](https://blog.izs.me/2012/08/policy-on-trolling) as well as the [Contributor Covenant v1.3.0](https://www.contributor-covenant.org/version/1/3/0/).*
3939

4040
[mod_team]: https://www.rust-lang.org/team.html#Moderation-team

COPYRIGHT

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -229,35 +229,3 @@ their own copyright notices and license terms:
229229
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
230230
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
231231
OF SUCH DAMAGE. */
232-
233-
* jemalloc, under src/jemalloc:
234-
235-
Copyright (C) 2002-2014 Jason Evans
236-
<jasone@canonware.com>. All rights reserved.
237-
Copyright (C) 2007-2012 Mozilla Foundation.
238-
All rights reserved.
239-
Copyright (C) 2009-2014 Facebook, Inc.
240-
All rights reserved.
241-
242-
Redistribution and use in source and binary forms, with or without
243-
modification, are permitted provided that the following conditions are met:
244-
1. Redistributions of source code must retain the above copyright notice(s),
245-
this list of conditions and the following disclaimer.
246-
2. Redistributions in binary form must reproduce the above copyright notice(s),
247-
this list of conditions and the following disclaimer in the documentation
248-
and/or other materials provided with the distribution.
249-
250-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S)
251-
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
252-
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
253-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
254-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S)
255-
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
256-
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
257-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
258-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
259-
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
260-
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
261-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
262-
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
263-
OF SUCH DAMAGE.

Cargo.lock

Lines changed: 177 additions & 163 deletions
Large diffs are not rendered by default.

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ members = [
2525
"src/tools/rustdoc-themes",
2626
]
2727
exclude = [
28-
"src/tools/rls/test_data",
2928
"build",
3029
# HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`.
3130
"obj",
@@ -71,4 +70,3 @@ rustc-std-workspace-core = { path = 'src/tools/rustc-std-workspace-core' }
7170

7271
[patch."https://github.com/rust-lang/rust-clippy"]
7372
clippy_lints = { path = "src/tools/clippy/clippy_lints" }
74-
rustc_tools_util = { path = "src/tools/clippy/rustc_tools_util" }

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -186,18 +186,15 @@ fetch snapshots, and an OS that can execute the available snapshot binaries.
186186

187187
Snapshot binaries are currently built and tested on several platforms:
188188

189-
| Platform / Architecture | x86 | x86_64 |
190-
|--------------------------------|-----|--------|
191-
| Windows (7, 8, Server 2008 R2) |||
192-
| Linux (2.6.18 or later) |||
193-
| OSX (10.7 Lion or later) |||
189+
| Platform / Architecture | x86 | x86_64 |
190+
|--------------------------|-----|--------|
191+
| Windows (7, 8, 10, ...) |||
192+
| Linux (2.6.18 or later) |||
193+
| OSX (10.7 Lion or later) |||
194194

195195
You may find that other platforms work, but these are our officially
196196
supported build environments that are most likely to work.
197197

198-
Rust currently needs between 600MiB and 1.5GiB of RAM to build, depending on platform.
199-
If it hits swap, it will take a very long time to build.
200-
201198
There is more advice about hacking on Rust in [CONTRIBUTING.md].
202199

203200
[CONTRIBUTING.md]: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md

config.toml.example

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@
9090
# with clang-cl, so this is special in that it only compiles LLVM with clang-cl
9191
#clang-cl = '/path/to/clang-cl.exe'
9292

93+
# Use libc++ when building LLVM instead of libstdc++. This is the default on
94+
# platforms already use libc++ as the default C++ library, but this option
95+
# allows you to use libc++ even on platforms when it's not. You need to ensure
96+
# that your host compiler ships with libc++.
97+
#use-libcxx = true
98+
9399
# =============================================================================
94100
# General build configuration options
95101
# =============================================================================
@@ -171,7 +177,7 @@
171177

172178
# Installs chosen set of extended tools if enables. By default builds all.
173179
# If chosen tool failed to build the installation fails.
174-
#tools = ["cargo", "rls", "rustfmt", "analysis", "src"]
180+
#tools = ["cargo", "rls", "clippy", "rustfmt", "analysis", "src"]
175181

176182
# Verbosity level: 0 == not verbose, 1 == verbose, 2 == very verbose
177183
#verbose = 0

src/bootstrap/bin/llvm-config-wrapper.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
// The sheer existence of this file is an awful hack. See the comments in
122
// `src/bootstrap/native.rs` for why this is needed when compiling LLD.
133

src/bootstrap/bin/main.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
//! rustbuild, the Rust build system
122
//!
133
//! This is the entry point for the build system used to compile the `rustc`

src/bootstrap/bin/rustc.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
//! Shim which is passed to Cargo as "rustc" when running the bootstrap.
122
//!
133
//! This shim will take care of some various tasks that our build process

src/bootstrap/bin/rustdoc.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
//! Shim which is passed to Cargo as "rustdoc" when running the bootstrap.
122
//!
133
//! See comments in `src/bootstrap/rustc.rs` for more information.

src/bootstrap/bin/sccache-plus-cl.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
extern crate cc;
122

133
use std::env;

src/bootstrap/bootstrap.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
# Copyright 2015-2016 The Rust Project Developers. See the COPYRIGHT
2-
# file at the top-level directory of this distribution and at
3-
# http://rust-lang.org/COPYRIGHT.
4-
#
5-
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
# option. This file may not be copied, modified, or distributed
9-
# except according to those terms.
10-
111
from __future__ import absolute_import, division, print_function
122
import argparse
133
import contextlib
@@ -681,7 +671,7 @@ def update_submodule(self, module, checked_out, recorded_submodules):
681671
run(["git", "submodule", "-q", "sync", module],
682672
cwd=self.rust_root, verbose=self.verbose)
683673
run(["git", "submodule", "update",
684-
"--init", "--recursive", module],
674+
"--init", "--recursive", "--progress", module],
685675
cwd=self.rust_root, verbose=self.verbose)
686676
run(["git", "reset", "-q", "--hard"],
687677
cwd=module_path, verbose=self.verbose)

src/bootstrap/bootstrap_test.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
# Copyright 2015-2016 The Rust Project Developers. See the COPYRIGHT
2-
# file at the top-level directory of this distribution and at
3-
# http://rust-lang.org/COPYRIGHT.
4-
#
5-
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
# option. This file may not be copied, modified, or distributed
9-
# except according to those terms.
10-
111
"""Bootstrap tests"""
122

133
from __future__ import absolute_import, division, print_function

src/bootstrap/builder.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
use std::any::Any;
122
use std::cell::{Cell, RefCell};
133
use std::collections::BTreeSet;
@@ -459,6 +449,7 @@ impl<'a> Builder<'a> {
459449
dist::Rls,
460450
dist::Rustfmt,
461451
dist::Clippy,
452+
dist::Miri,
462453
dist::LlvmTools,
463454
dist::Lldb,
464455
dist::Extended,
@@ -471,6 +462,7 @@ impl<'a> Builder<'a> {
471462
install::Rls,
472463
install::Rustfmt,
473464
install::Clippy,
465+
install::Miri,
474466
install::Analysis,
475467
install::Src,
476468
install::Rustc

src/bootstrap/cache.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
use std::any::{Any, TypeId};
122
use std::borrow::Borrow;
133
use std::cell::RefCell;

src/bootstrap/cc_detect.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
//! C-compiler probing and detection.
122
//!
133
//! This module will fill out the `cc` and `cxx` maps of `Build` by looking for

src/bootstrap/channel.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
//! Build configuration for Rust's release channels.
122
//!
133
//! Implements the stable/beta/nightly channel distinctions by setting various

src/bootstrap/check.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
//! Implementation of compiling the compiler and standard library, in "check" mode.
122
133
use crate::compile::{run_cargo, std_cargo, test_cargo, rustc_cargo, rustc_cargo_env,
@@ -48,7 +38,6 @@ impl Step for Std {
4838
builder.info(&format!("Checking std artifacts ({} -> {})", &compiler.host, target));
4939
run_cargo(builder,
5040
&mut cargo,
51-
vec![],
5241
&libstd_stamp(builder, compiler, target),
5342
true);
5443

@@ -95,7 +84,6 @@ impl Step for Rustc {
9584
builder.info(&format!("Checking compiler artifacts ({} -> {})", &compiler.host, target));
9685
run_cargo(builder,
9786
&mut cargo,
98-
vec![],
9987
&librustc_stamp(builder, compiler, target),
10088
true);
10189

@@ -146,7 +134,6 @@ impl Step for CodegenBackend {
146134
let _folder = builder.fold_output(|| format!("stage{}-rustc_codegen_llvm", compiler.stage));
147135
run_cargo(builder,
148136
&mut cargo,
149-
vec![],
150137
&codegen_backend_stamp(builder, compiler, target, backend),
151138
true);
152139
}
@@ -184,7 +171,6 @@ impl Step for Test {
184171
builder.info(&format!("Checking test artifacts ({} -> {})", &compiler.host, target));
185172
run_cargo(builder,
186173
&mut cargo,
187-
vec![],
188174
&libtest_stamp(builder, compiler, target),
189175
true);
190176

@@ -232,7 +218,6 @@ impl Step for Rustdoc {
232218
println!("Checking rustdoc artifacts ({} -> {})", &compiler.host, target);
233219
run_cargo(builder,
234220
&mut cargo,
235-
vec![],
236221
&rustdoc_stamp(builder, compiler, target),
237222
true);
238223

src/bootstrap/clean.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
//! Implementation of `make clean` in rustbuild.
122
//!
133
//! Responsible for cleaning out a build directory of all old and stale

0 commit comments

Comments
 (0)