Skip to content

Commit 5fde770

Browse files
committed
Auto merge of rust-lang#2815 - saethlin:rustup, r=oli-obk
rustup
2 parents 163f354 + f18c39e commit 5fde770

File tree

904 files changed

+23129
-9625
lines changed

Some content is hidden

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

904 files changed

+23129
-9625
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
src/etc/installer/gfx/* binary
1010
src/vendor/** -text
1111
Cargo.lock linguist-generated=false
12-
config.toml.example linguist-language=TOML
1312

1413
# Older git versions try to fix line endings on images and fonts, this prevents it.
1514
*.png binary

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ jobs:
443443
os: windows-latest-xl
444444
- name: dist-x86_64-msvc
445445
env:
446-
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --host=x86_64-pc-windows-msvc --target=x86_64-pc-windows-msvc --enable-full-tools --enable-profiler --set rust.lto=thin"
446+
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --host=x86_64-pc-windows-msvc --target=x86_64-pc-windows-msvc --enable-full-tools --enable-profiler"
447447
SCRIPT: PGO_HOST=x86_64-pc-windows-msvc python src/ci/stage-build.py python x.py dist bootstrap --include-default-paths
448448
DIST_REQUIRE_ALL_TOOLS: 1
449449
os: windows-latest-xl

.reuse/dep5

Lines changed: 82 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,99 @@
1+
# WARNING: this metadata is currently incomplete, do not rely on it yet.
2+
13
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
24
Files-Excluded:
35
src/llvm-project
46

5-
Files: *
7+
# Note that we're explicitly listing the individual files at the root of the
8+
# repository rather than just having `Files: *`. This is explicitly done to
9+
# help downstream forks of the Rust compiler: this way, the files they add
10+
# won't be automatically marked as authored by the Rust project.
11+
Files: compiler/*
12+
library/*
13+
tests/*
14+
src/*
15+
.github/*
16+
Cargo.lock
17+
Cargo.toml
18+
CODE_OF_CONDUCT.md
19+
config.example.toml
20+
configure
21+
CONTRIBUTING.md
22+
COPYRIGHT
23+
LICENSE-APACHE
24+
LICENSE-MIT
25+
README.md
26+
RELEASES.md
27+
rustfmt.toml
28+
triagebot.toml
29+
x
30+
x.ps1
31+
x.py
32+
.editorconfig
33+
.git-blame-ignore-revs
34+
.gitattributes
35+
.gitignore
36+
.gitmodules
37+
.mailmap
638
Copyright: The Rust Project Developers (see https://thanks.rust-lang.org)
739
License: MIT or Apache-2.0
840

41+
Files: compiler/rustc_apfloat/*
42+
Copyright: LLVM APFloat authors
43+
The Rust Project Developers (see https://thanks.rust-lang.org)
44+
License: NCSA AND (MIT OR Apache-2.0)
45+
46+
Files: compiler/rustc_codegen_cranelift/src/cranelift_native.rs
47+
Copyright: The Cranelift Project Developers
48+
The Rust Project Developers (see https://thanks.rust-lang.org)
49+
License: Apache-2.0 WITH LLVM-exception AND (Apache-2.0 OR MIT)
50+
51+
Files: compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
52+
Copyright: LLVM authors
53+
The Rust Project Developers (see https://thanks.rust-lang.org)
54+
License: Apache-2.0 WITH LLVM-exception AND (Apache-2.0 OR MIT)
55+
56+
Files: library/core/src/unicode/unicode_data.rs
57+
Copyright: 1991-2022 Unicode, Inc. All rights reserved.
58+
License: Unicode-DFS-2016
59+
60+
Files: library/std/src/sync/mpmc/*
61+
Copyright: 2019 The Crossbeam Project Developers
62+
The Rust Project Developers (see https://thanks.rust-lang.org)
63+
License: MIT OR Apache-2.0
64+
65+
Files: library/std/src/sys/unix/locks/fuchsia_mutex.rs
66+
Copyright: 2016 The Fuchsia Authors
67+
The Rust Project Developers (see https://thanks.rust-lang.org)
68+
License: BSD-2-Clause AND (MIT OR Apache-2.0)
69+
70+
Files: src/test/rustdoc/auxiliary/enum-primitive.rs
71+
Copyright: 2015 Anders Kaseorg <[email protected]>
72+
License: MIT
73+
974
Files: src/librustdoc/html/static/fonts/FiraSans*
10-
Copyright: 2014, Mozilla Foundation, 2014, Telefonica S.A.
75+
Copyright: 2014, Mozilla Foundation
76+
2014, Telefonica S.A.
1177
License: OFL-1.1
1278

1379
Files: src/librustdoc/html/static/fonts/NanumBarun*
1480
Copyright: 2010 NAVER Corporation
1581
License: OFL-1.1
1682

1783
Files: src/librustdoc/html/static/fonts/SourceCodePro*
18-
Copyright: 2010, 2012 Adobe Systems Incorporated
84+
src/librustdoc/html/static/fonts/SourceSerif4*
85+
Copyright: 2010, 2012, 2014-2023, Adobe Systems Incorporated
1986
License: OFL-1.1
2087

21-
Files: src/librustdoc/html/static/fonts/SourceSerif4*
22-
Copyright: 2014-2021 Adobe Systems Incorporated
23-
License: OFL-1.1
88+
Files: src/librustdoc/html/static/css/normalize.css
89+
Copyright: Nicolas Gallagher and Jonathan Neal
90+
License: MIT
91+
92+
Files: src/librustdoc/html/static/css/themes/ayu.css
93+
Copyright: Ike Ku, Jessica Stokes, Leon Guan
94+
The Rust Project Developers (see https://thanks.rust-lang.org)
95+
License: MIT OR Apache-2.0
96+
97+
Files: src/doc/rustc-dev-guide/mermaid.min.js
98+
Copyright: Knut Sveidqvist
99+
License: MIT

Cargo.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ dependencies = [
738738

739739
[[package]]
740740
name = "clippy"
741-
version = "0.1.69"
741+
version = "0.1.70"
742742
dependencies = [
743743
"clap 4.1.4",
744744
"clippy_lints",
@@ -781,7 +781,7 @@ dependencies = [
781781

782782
[[package]]
783783
name = "clippy_lints"
784-
version = "0.1.69"
784+
version = "0.1.70"
785785
dependencies = [
786786
"cargo_metadata 0.15.3",
787787
"clippy_utils",
@@ -804,7 +804,7 @@ dependencies = [
804804

805805
[[package]]
806806
name = "clippy_utils"
807-
version = "0.1.69"
807+
version = "0.1.70"
808808
dependencies = [
809809
"arrayvec 0.7.0",
810810
"if_chain",
@@ -1150,7 +1150,7 @@ checksum = "a0afaad2b26fa326569eb264b1363e8ae3357618c43982b3f285f0774ce76b69"
11501150

11511151
[[package]]
11521152
name = "declare_clippy_lint"
1153-
version = "0.1.69"
1153+
version = "0.1.70"
11541154
dependencies = [
11551155
"itertools",
11561156
"quote",

LICENSES/BSD-2-Clause.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Copyright (c) <year> <owner>
2+
3+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
5+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6+
7+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8+
9+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

LICENSES/NCSA.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
University of Illinois/NCSA Open Source License
2+
3+
Copyright (c) <Year> <Owner Organization Name>. All rights reserved.
4+
5+
Developed by: <Name of Development Group> <Name of Institution> <URL for Development Group/Institution>
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8+
9+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers.
10+
11+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimers in the documentation and/or other materials provided with the distribution.
12+
13+
* Neither the names of <Name of Development Group, Name of Institution>, nor the names of its contributors may be used to endorse or promote products derived from this Software without specific prior written permission.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.

LICENSES/Unicode-DFS-2016.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE
2+
3+
Unicode Data Files include all data files under the directories http://www.unicode.org/Public/, http://www.unicode.org/reports/, http://www.unicode.org/cldr/data/, http://source.icu-project.org/repos/icu/, and http://www.unicode.org/utility/trac/browser/.
4+
5+
Unicode Data Files do not include PDF online code charts under the directory http://www.unicode.org/Public/.
6+
7+
Software includes any source code published in the Unicode Standard or under the directories http://www.unicode.org/Public/, http://www.unicode.org/reports/, http://www.unicode.org/cldr/data/, http://source.icu-project.org/repos/icu/, and http://www.unicode.org/utility/trac/browser/.
8+
9+
NOTICE TO USER: Carefully read the following legal agreement. BY DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING UNICODE INC.'S DATA FILES ("DATA FILES"), AND/OR SOFTWARE ("SOFTWARE"), YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
10+
11+
COPYRIGHT AND PERMISSION NOTICE
12+
13+
Copyright © 1991-2016 Unicode, Inc. All rights reserved. Distributed under the Terms of Use in http://www.unicode.org/copyright.html.
14+
15+
Permission is hereby granted, free of charge, to any person obtaining a copy of the Unicode data files and any associated documentation (the "Data Files") or Unicode software and any associated documentation (the "Software") to deal in the Data Files or Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Data Files or Software, and to permit persons to whom the Data Files or Software are furnished to do so, provided that either
16+
17+
(a) this copyright and permission notice appear with all copies of the Data Files or Software, or
18+
(b) this copyright and permission notice appear in associated Documentation.
19+
20+
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA FILES OR SOFTWARE.
21+
22+
Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in these Data Files or Software without prior written authorization of the copyright holder.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ See [the rustc-dev-guide for more info][sysllvm].
9999
The Rust build system uses a file named `config.toml` in the root of the
100100
source tree to determine various configuration settings for the build.
101101
Set up the defaults intended for distros to get started. You can see a full
102-
list of options in `config.toml.example`.
102+
list of options in `config.example.toml`.
103103

104104
```sh
105105
printf 'profile = "user" \nchangelog-seen = 2 \n' > config.toml

compiler/rustc/src/main.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
// The two crates we link to here, `std` and `rustc_driver`, are both dynamic
2525
// libraries. So we must reference jemalloc symbols one way or another, because
2626
// this file is the only object code in the rustc executable.
27+
//
28+
// NOTE: if you are reading this comment because you want to set a custom `global_allocator` for
29+
// benchmarking, consider using the benchmarks in the `rustc-perf` collector suite instead:
30+
// https://github.com/rust-lang/rustc-perf/blob/master/collector/README.md#profiling
31+
//
32+
// NOTE: if you are reading this comment because you want to replace jemalloc with another allocator
33+
// to compare their performance, see
34+
// https://github.com/rust-lang/rust/commit/b90cfc887c31c3e7a9e6d462e2464db1fe506175#diff-43914724af6e464c1da2171e4a9b6c7e607d5bc1203fa95c0ab85be4122605ef
35+
// for an example of how to do so.
2736

2837
#[unix_sigpipe = "sig_dfl"]
2938
fn main() {

compiler/rustc_ast/src/ast.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,6 @@ impl Expr {
12301230

12311231
pub fn precedence(&self) -> ExprPrecedence {
12321232
match self.kind {
1233-
ExprKind::Box(_) => ExprPrecedence::Box,
12341233
ExprKind::Array(_) => ExprPrecedence::Array,
12351234
ExprKind::ConstBlock(_) => ExprPrecedence::ConstBlock,
12361235
ExprKind::Call(..) => ExprPrecedence::Call,
@@ -1291,8 +1290,7 @@ impl Expr {
12911290
/// To a first-order approximation, is this a pattern?
12921291
pub fn is_approximately_pattern(&self) -> bool {
12931292
match &self.peel_parens().kind {
1294-
ExprKind::Box(_)
1295-
| ExprKind::Array(_)
1293+
ExprKind::Array(_)
12961294
| ExprKind::Call(_, _)
12971295
| ExprKind::Tup(_)
12981296
| ExprKind::Lit(_)
@@ -1363,8 +1361,6 @@ pub struct StructExpr {
13631361

13641362
#[derive(Clone, Encodable, Decodable, Debug)]
13651363
pub enum ExprKind {
1366-
/// A `box x` expression.
1367-
Box(P<Expr>),
13681364
/// An array (`[a, b, c, d]`)
13691365
Array(ThinVec<P<Expr>>),
13701366
/// Allow anonymous constants from an inline `const` block

compiler/rustc_ast/src/mut_visit.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,6 @@ pub fn noop_visit_expr<T: MutVisitor>(
13161316
vis: &mut T,
13171317
) {
13181318
match kind {
1319-
ExprKind::Box(expr) => vis.visit_expr(expr),
13201319
ExprKind::Array(exprs) => visit_thin_exprs(exprs, vis),
13211320
ExprKind::ConstBlock(anon_const) => {
13221321
vis.visit_anon_const(anon_const);

compiler/rustc_ast/src/util/classify.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ pub fn expr_trailing_brace(mut expr: &ast::Expr) -> Option<&ast::Expr> {
3535
| Assign(_, e, _)
3636
| AssignOp(_, _, e)
3737
| Binary(_, _, e)
38-
| Box(e)
3938
| Break(_, Some(e))
4039
| Let(_, e, _)
4140
| Range(_, Some(e), _)

compiler/rustc_ast/src/visit.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,6 @@ pub fn walk_expr<'a, V: Visitor<'a>>(visitor: &mut V, expression: &'a Expr) {
772772
walk_list!(visitor, visit_attribute, expression.attrs.iter());
773773

774774
match &expression.kind {
775-
ExprKind::Box(subexpression) => visitor.visit_expr(subexpression),
776775
ExprKind::Array(subexpressions) => {
777776
walk_list!(visitor, visit_expr, subexpressions);
778777
}

0 commit comments

Comments
 (0)