Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

Commit 1ed2217

Browse files
bors[bot]GuillaumeGomezvertexcliquepietroalbiniMark-Simulacrum
authored
Merge #147
147: sync upstream r=ltratt a=vext01 Co-authored-by: Guillaume Gomez <[email protected]> Co-authored-by: Mahmut Bulut <[email protected]> Co-authored-by: Pietro Albini <[email protected]> Co-authored-by: Mark Rousskov <[email protected]> Co-authored-by: Erin Power <[email protected]> Co-authored-by: XAMPPRocky <[email protected]> Co-authored-by: bors <[email protected]> Co-authored-by: ThePuzzlemaker <[email protected]> Co-authored-by: Mara Bos <[email protected]>
2 parents 67a0fd8 + 9f03147 commit 1ed2217

File tree

1,215 files changed

+26226
-14978
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,215 files changed

+26226
-14978
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*.h rust
66
*.rs rust diff=rust
77
*.fixed linguist-language=Rust
8+
*.mir linguist-language=Rust
89
src/etc/installer/gfx/* binary
910
*.woff binary
1011
src/vendor/** -text

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ Jorge Aparicio <[email protected]> <[email protected]>
148148
Joseph Martin <[email protected]>
149149
150150
151+
151152
152153
Junyoung Cho <[email protected]>
153154

Cargo.lock

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# It is not intended for manual editing.
33
[[package]]
44
name = "addr2line"
5-
version = "0.13.0"
5+
version = "0.14.0"
66
source = "registry+https://github.com/rust-lang/crates.io-index"
7-
checksum = "1b6a2d3371669ab3ca9797670853d61402b03d0b4b9ebf33d677dfa720203072"
7+
checksum = "7c0929d69e78dd9bf5408269919fcbcaeb2e35e5d43e5815517cdc6a8e11a423"
88
dependencies = [
99
"compiler_builtins",
1010
"gimli",
@@ -132,13 +132,13 @@ checksum = "f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d"
132132

133133
[[package]]
134134
name = "backtrace"
135-
version = "0.3.53"
135+
version = "0.3.55"
136136
dependencies = [
137137
"addr2line",
138138
"cfg-if 1.0.0",
139139
"libc",
140140
"miniz_oxide",
141-
"object 0.21.1",
141+
"object",
142142
"rustc-demangle",
143143
]
144144

@@ -470,9 +470,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
470470

471471
[[package]]
472472
name = "chalk-derive"
473-
version = "0.32.0"
473+
version = "0.36.0"
474474
source = "registry+https://github.com/rust-lang/crates.io-index"
475-
checksum = "2d072b2ba723f0bada7c515d8b3725224bc4f5052d2a92dcbeb0b118ff37084a"
475+
checksum = "9f88ce4deae1dace71e49b7611cfae2d5489de3530d6daba5758043c47ac3a10"
476476
dependencies = [
477477
"proc-macro2",
478478
"quote",
@@ -482,9 +482,9 @@ dependencies = [
482482

483483
[[package]]
484484
name = "chalk-engine"
485-
version = "0.32.0"
485+
version = "0.36.0"
486486
source = "registry+https://github.com/rust-lang/crates.io-index"
487-
checksum = "6fb5475f6083d6d6c509e1c335c4f69ad04144ac090faa1afb134a53c3695841"
487+
checksum = "0e34c9b1b10616782143d7f49490f91ae94afaf2202de3ab0b2835e78b4f0ccc"
488488
dependencies = [
489489
"chalk-derive",
490490
"chalk-ir",
@@ -495,19 +495,19 @@ dependencies = [
495495

496496
[[package]]
497497
name = "chalk-ir"
498-
version = "0.32.0"
498+
version = "0.36.0"
499499
source = "registry+https://github.com/rust-lang/crates.io-index"
500-
checksum = "f60cdb0e18c5455cb6a85e8464aad3622b70476018edfa8845691df66f7e9a05"
500+
checksum = "63362c629c2014ab639b04029070763fb8224df136d1363d30e9ece4c8877da3"
501501
dependencies = [
502502
"chalk-derive",
503503
"lazy_static",
504504
]
505505

506506
[[package]]
507507
name = "chalk-solve"
508-
version = "0.32.0"
508+
version = "0.36.0"
509509
source = "registry+https://github.com/rust-lang/crates.io-index"
510-
checksum = "981534d499a8476ecc0b520be4d3864757f96211826a75360fbf2cb6fae362ab"
510+
checksum = "cac338a67af52a7f50bb2f8232e730a3518ce432dbe303246acfe525ddd838c7"
511511
dependencies = [
512512
"chalk-derive",
513513
"chalk-ir",
@@ -731,6 +731,13 @@ version = "0.8.0"
731731
source = "registry+https://github.com/rust-lang/crates.io-index"
732732
checksum = "9a21fa21941700a3cd8fcb4091f361a6a712fac632f85d9f487cc892045d55c6"
733733

734+
[[package]]
735+
name = "coverage_test_macros"
736+
version = "0.0.0"
737+
dependencies = [
738+
"proc-macro2",
739+
]
740+
734741
[[package]]
735742
name = "cpuid-bool"
736743
version = "0.1.2"
@@ -990,9 +997,9 @@ dependencies = [
990997

991998
[[package]]
992999
name = "dlmalloc"
993-
version = "0.1.4"
1000+
version = "0.2.1"
9941001
source = "registry+https://github.com/rust-lang/crates.io-index"
995-
checksum = "35055b1021724f4eb5262eb49130eebff23fc59fc5a14160e05faad8eeb36673"
1002+
checksum = "332570860c2edf2d57914987bf9e24835425f75825086b6ba7d1e6a3e4f1f254"
9961003
dependencies = [
9971004
"compiler_builtins",
9981005
"libc",
@@ -1301,9 +1308,9 @@ dependencies = [
13011308

13021309
[[package]]
13031310
name = "gimli"
1304-
version = "0.22.0"
1311+
version = "0.23.0"
13051312
source = "registry+https://github.com/rust-lang/crates.io-index"
1306-
checksum = "aaf91faf136cb47367fa430cd46e37a788775e7fa104f8b4bcb3861dc389b724"
1313+
checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce"
13071314
dependencies = [
13081315
"compiler_builtins",
13091316
"rustc-std-workspace-alloc",
@@ -2190,21 +2197,15 @@ dependencies = [
21902197

21912198
[[package]]
21922199
name = "object"
2193-
version = "0.20.0"
2200+
version = "0.22.0"
21942201
source = "registry+https://github.com/rust-lang/crates.io-index"
2195-
checksum = "1ab52be62400ca80aa00285d25253d7f7c437b7375c4de678f5405d3afe82ca5"
2202+
checksum = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397"
21962203
dependencies = [
21972204
"compiler_builtins",
21982205
"rustc-std-workspace-alloc",
21992206
"rustc-std-workspace-core",
22002207
]
22012208

2202-
[[package]]
2203-
name = "object"
2204-
version = "0.21.1"
2205-
source = "registry+https://github.com/rust-lang/crates.io-index"
2206-
checksum = "37fd5004feb2ce328a52b0b3d01dbf4ffff72583493900ed15f22d4111c51693"
2207-
22082209
[[package]]
22092210
name = "once_cell"
22102211
version = "1.4.1"
@@ -3032,6 +3033,7 @@ name = "rustbook"
30323033
version = "0.1.0"
30333034
dependencies = [
30343035
"clap",
3036+
"env_logger 0.7.1",
30353037
"mdbook",
30363038
]
30373039

@@ -3813,7 +3815,7 @@ dependencies = [
38133815
"rustc_target",
38143816
"rustc_trait_selection",
38153817
"rustc_traits",
3816-
"rustc_ty",
3818+
"rustc_ty_utils",
38173819
"rustc_typeck",
38183820
"smallvec 1.4.2",
38193821
"tempfile",
@@ -3842,6 +3844,7 @@ dependencies = [
38423844
"rustc_hir",
38433845
"rustc_index",
38443846
"rustc_middle",
3847+
"rustc_parse_format",
38453848
"rustc_session",
38463849
"rustc_span",
38473850
"rustc_target",
@@ -3941,6 +3944,7 @@ dependencies = [
39413944
name = "rustc_mir"
39423945
version = "0.0.0"
39433946
dependencies = [
3947+
"coverage_test_macros",
39443948
"either",
39453949
"itertools 0.9.0",
39463950
"polonius-engine",
@@ -4250,7 +4254,7 @@ dependencies = [
42504254
]
42514255

42524256
[[package]]
4253-
name = "rustc_ty"
4257+
name = "rustc_ty_utils"
42544258
version = "0.0.0"
42554259
dependencies = [
42564260
"rustc_data_structures",
@@ -4348,7 +4352,7 @@ dependencies = [
43484352

43494353
[[package]]
43504354
name = "rustfmt-nightly"
4351-
version = "1.4.24"
4355+
version = "1.4.27"
43524356
dependencies = [
43534357
"annotate-snippets 0.6.1",
43544358
"anyhow",
@@ -4677,7 +4681,7 @@ dependencies = [
46774681
"hermit-abi",
46784682
"libc",
46794683
"miniz_oxide",
4680-
"object 0.20.0",
4684+
"object",
46814685
"panic_abort",
46824686
"panic_unwind",
46834687
"profiler_builtins",

RELEASES.md

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,143 @@
1+
Version 1.48.0 (2020-11-19)
2+
==========================
3+
4+
Language
5+
--------
6+
7+
- [The `unsafe` keyword is now syntactically permitted on modules.][75857] This
8+
is still rejected *semantically*, but can now be parsed by procedural macros.
9+
10+
Compiler
11+
--------
12+
- [Stabilised the `-C link-self-contained=<yes|no>` compiler flag.][76158] This tells
13+
`rustc` whether to link its own C runtime and libraries or to rely on a external
14+
linker to find them. (Supported only on `windows-gnu`, `linux-musl`, and `wasi` platforms.)
15+
- [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.][77386]
16+
Note: If you're using cargo you must explicitly pass the `--target` flag.
17+
- [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420]
18+
19+
\* Refer to Rust's [platform support page][forge-platform-support] for more
20+
information on Rust's tiered platform support.
21+
22+
Libraries
23+
---------
24+
- [`io::Write` is now implemented for `&ChildStdin` `&Sink`, `&Stdout`,
25+
and `&Stderr`.][76275]
26+
- [All arrays of any length now implement `TryFrom<Vec<T>>`.][76310]
27+
- [The `matches!` macro now supports having a trailing comma.][74880]
28+
- [`Vec<A>` now implements `PartialEq<[B]>` where `A: PartialEq<B>`.][74194]
29+
- [The `RefCell::{replace, replace_with, clone}` methods now all use `#[track_caller]`.][77055]
30+
31+
Stabilized APIs
32+
---------------
33+
- [`slice::as_ptr_range`]
34+
- [`slice::as_mut_ptr_range`]
35+
- [`VecDeque::make_contiguous`]
36+
- [`future::pending`]
37+
- [`future::ready`]
38+
39+
The following previously stable methods are now `const fn`'s:
40+
41+
- [`Option::is_some`]
42+
- [`Option::is_none`]
43+
- [`Option::as_ref`]
44+
- [`Result::is_ok`]
45+
- [`Result::is_err`]
46+
- [`Result::as_ref`]
47+
- [`Ordering::reverse`]
48+
- [`Ordering::then`]
49+
50+
Cargo
51+
-----
52+
53+
Rustdoc
54+
-------
55+
- [You can now link to items in `rustdoc` using the intra-doc link
56+
syntax.][74430] E.g. ``/// Uses [`std::future`]`` will automatically generate
57+
a link to `std::future`'s documentation. See ["Linking to items by
58+
name"][intradoc-links] for more information.
59+
- [You can now specify `#[doc(alias = "<alias>")]` on items to add search aliases
60+
when searching through `rustdoc`'s UI.][75740]
61+
62+
Compatibility Notes
63+
-------------------
64+
- [Promotion of references to `'static` lifetime inside `const fn` now follows the
65+
same rules as inside a `fn` body.][75502] In particular, `&foo()` will not be
66+
promoted to `'static` lifetime any more inside `const fn`s.
67+
- [Associated type bindings on trait objects are now verified to meet the bounds
68+
declared on the trait when checking that they implement the trait.][27675]
69+
- [When trait bounds on associated types or opaque types are ambiguous, the
70+
compiler no longer makes an arbitrary choice on which bound to use.][54121]
71+
- [Fixed recursive nonterminals not being expanded in macros during
72+
pretty-print/reparse check.][77153] This may cause errors if your macro wasn't
73+
correctly handling recursive nonterminal tokens.
74+
- [`&mut` references to non zero-sized types are no longer promoted.][75585]
75+
- [`rustc` will now warn if you use attributes like `#[link_name]` or `#[cold]`
76+
in places where they have no effect.][73461]
77+
- [Updated `_mm256_extract_epi8` and `_mm256_extract_epi16` signatures in
78+
`arch::{x86, x86_64}` to return `i32` to match the vendor signatures.][73166]
79+
- [`mem::uninitialized` will now panic if any inner types inside a struct or enum
80+
disallow zero-initialization.][71274]
81+
- [`#[target_feature]` will now error if used in a place where it has no effect.][78143]
82+
- [Foreign exceptions are now caught by `catch_unwind` and will cause an abort.][70212]
83+
Note: This behaviour is not guaranteed and is still considered undefined behaviour,
84+
see the [`catch_unwind`] documentation for further information.
85+
86+
87+
88+
Internal Only
89+
-------------
90+
These changes provide no direct user facing benefits, but represent significant
91+
improvements to the internals and overall performance of rustc and
92+
related tools.
93+
94+
- [Building `rustc` from source now uses `ninja` by default over `make`.][74922]
95+
You can continue building with `make` by setting `ninja=false` in
96+
your `config.toml`.
97+
- [cg_llvm: `fewer_names` in `uncached_llvm_type`][76030]
98+
- [Made `ensure_sufficient_stack()` non-generic][76680]
99+
100+
[78143]: https://github.com/rust-lang/rust/issues/78143
101+
[76680]: https://github.com/rust-lang/rust/pull/76680/
102+
[76030]: https://github.com/rust-lang/rust/pull/76030/
103+
[70212]: https://github.com/rust-lang/rust/pull/70212/
104+
[27675]: https://github.com/rust-lang/rust/issues/27675/
105+
[54121]: https://github.com/rust-lang/rust/issues/54121/
106+
[71274]: https://github.com/rust-lang/rust/pull/71274/
107+
[77386]: https://github.com/rust-lang/rust/pull/77386/
108+
[77153]: https://github.com/rust-lang/rust/pull/77153/
109+
[77055]: https://github.com/rust-lang/rust/pull/77055/
110+
[76275]: https://github.com/rust-lang/rust/pull/76275/
111+
[76310]: https://github.com/rust-lang/rust/pull/76310/
112+
[76420]: https://github.com/rust-lang/rust/pull/76420/
113+
[76158]: https://github.com/rust-lang/rust/pull/76158/
114+
[75857]: https://github.com/rust-lang/rust/pull/75857/
115+
[75585]: https://github.com/rust-lang/rust/pull/75585/
116+
[75740]: https://github.com/rust-lang/rust/pull/75740/
117+
[75502]: https://github.com/rust-lang/rust/pull/75502/
118+
[74880]: https://github.com/rust-lang/rust/pull/74880/
119+
[74922]: https://github.com/rust-lang/rust/pull/74922/
120+
[74430]: https://github.com/rust-lang/rust/pull/74430/
121+
[74194]: https://github.com/rust-lang/rust/pull/74194/
122+
[73461]: https://github.com/rust-lang/rust/pull/73461/
123+
[73166]: https://github.com/rust-lang/rust/pull/73166/
124+
[intradoc-links]: https://doc.rust-lang.org/rustdoc/linking-to-items-by-name.html
125+
[`catch_unwind`]: https://doc.rust-lang.org/std/panic/fn.catch_unwind.html
126+
[`Option::is_some`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_some
127+
[`Option::is_none`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_none
128+
[`Option::as_ref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref
129+
[`Result::is_ok`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_ok
130+
[`Result::is_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_err
131+
[`Result::as_ref`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.as_ref
132+
[`Ordering::reverse`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.reverse
133+
[`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
134+
[`slice::as_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr_range
135+
[`slice::as_mut_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_mut_ptr_range
136+
[`VecDeque::make_contiguous`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.make_contiguous
137+
[`future::pending`]: https://doc.rust-lang.org/std/future/fn.pending.html
138+
[`future::ready`]: https://doc.rust-lang.org/std/future/fn.ready.html
139+
140+
1141
Version 1.47.0 (2020-10-08)
2142
==========================
3143

@@ -90,6 +230,7 @@ Compatibility Notes
90230

91231
Internal Only
92232
--------
233+
93234
- [Improved default settings for bootstrapping in `x.py`.][73964] You can read details about this change in the ["Changes to `x.py` defaults"](https://blog.rust-lang.org/inside-rust/2020/08/30/changes-to-x-py-defaults.html) post on the Inside Rust blog.
94235

95236
[1.47.0-cfg]: https://docs.microsoft.com/en-us/windows/win32/secbp/control-flow-guard

0 commit comments

Comments
 (0)