Skip to content

Commit 0aaa9ea

Browse files
committed
Auto merge of rust-lang#2772 - RalfJung:rustup, r=RalfJung
Rustup
2 parents e57962f + a78e178 commit 0aaa9ea

File tree

1,501 files changed

+29960
-9791
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,501 files changed

+29960
-9791
lines changed

.github/workflows/ci.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -418,36 +418,36 @@ jobs:
418418
os: windows-latest-xl
419419
- name: i686-mingw-1
420420
env:
421-
RUST_CONFIGURE_ARGS: "--build=i686-pc-windows-gnu --set llvm.allow-old-toolchain"
421+
RUST_CONFIGURE_ARGS: "--build=i686-pc-windows-gnu"
422422
SCRIPT: make ci-mingw-subset-1
423423
NO_DOWNLOAD_CI_LLVM: 1
424424
CUSTOM_MINGW: 1
425425
os: windows-latest-xl
426426
- name: i686-mingw-2
427427
env:
428-
RUST_CONFIGURE_ARGS: "--build=i686-pc-windows-gnu --set llvm.allow-old-toolchain"
428+
RUST_CONFIGURE_ARGS: "--build=i686-pc-windows-gnu"
429429
SCRIPT: make ci-mingw-subset-2
430430
NO_DOWNLOAD_CI_LLVM: 1
431431
CUSTOM_MINGW: 1
432432
os: windows-latest-xl
433433
- name: x86_64-mingw-1
434434
env:
435435
SCRIPT: make ci-mingw-subset-1
436-
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-gnu --enable-profiler --set llvm.allow-old-toolchain"
436+
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-gnu --enable-profiler"
437437
NO_DOWNLOAD_CI_LLVM: 1
438438
CUSTOM_MINGW: 1
439439
os: windows-latest-xl
440440
- name: x86_64-mingw-2
441441
env:
442442
SCRIPT: make ci-mingw-subset-2
443-
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-gnu --enable-profiler --set llvm.allow-old-toolchain"
443+
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-gnu --enable-profiler"
444444
NO_DOWNLOAD_CI_LLVM: 1
445445
CUSTOM_MINGW: 1
446446
os: windows-latest-xl
447447
- name: dist-x86_64-msvc
448448
env:
449449
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"
450-
SCRIPT: PGO_HOST=x86_64-pc-windows-msvc src/ci/pgo.sh python x.py dist bootstrap --include-default-paths
450+
SCRIPT: PGO_HOST=x86_64-pc-windows-msvc python src/ci/stage-build.py python x.py dist bootstrap --include-default-paths
451451
DIST_REQUIRE_ALL_TOOLS: 1
452452
os: windows-latest-xl
453453
- name: dist-i686-msvc
@@ -465,7 +465,7 @@ jobs:
465465
os: windows-latest-xl
466466
- name: dist-i686-mingw
467467
env:
468-
RUST_CONFIGURE_ARGS: "--build=i686-pc-windows-gnu --enable-full-tools --enable-profiler --set llvm.allow-old-toolchain"
468+
RUST_CONFIGURE_ARGS: "--build=i686-pc-windows-gnu --enable-full-tools --enable-profiler"
469469
NO_DOWNLOAD_CI_LLVM: 1
470470
SCRIPT: python x.py dist bootstrap --include-default-paths
471471
CUSTOM_MINGW: 1
@@ -474,7 +474,7 @@ jobs:
474474
- name: dist-x86_64-mingw
475475
env:
476476
SCRIPT: python x.py dist bootstrap --include-default-paths
477-
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-gnu --enable-full-tools --enable-profiler --set llvm.allow-old-toolchain"
477+
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-gnu --enable-full-tools --enable-profiler"
478478
NO_DOWNLOAD_CI_LLVM: 1
479479
CUSTOM_MINGW: 1
480480
DIST_REQUIRE_ALL_TOOLS: 1

Cargo.lock

+21-19
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ dependencies = [
351351
"cargo-test-macro",
352352
"cargo-test-support",
353353
"cargo-util",
354-
"clap 4.1.1",
354+
"clap 4.1.4",
355355
"crates-io",
356356
"curl",
357357
"curl-sys",
@@ -655,9 +655,9 @@ dependencies = [
655655

656656
[[package]]
657657
name = "clap"
658-
version = "4.1.1"
658+
version = "4.1.4"
659659
source = "registry+https://github.com/rust-lang/crates.io-index"
660-
checksum = "4ec7a4128863c188deefe750ac1d1dfe66c236909f845af04beed823638dc1b2"
660+
checksum = "f13b9c79b5d1dd500d20ef541215a6423c75829ef43117e1b4d17fd8af0b5d76"
661661
dependencies = [
662662
"bitflags",
663663
"clap_derive 4.1.0",
@@ -675,7 +675,7 @@ version = "4.0.7"
675675
source = "registry+https://github.com/rust-lang/crates.io-index"
676676
checksum = "10861370d2ba66b0f5989f83ebf35db6421713fd92351790e7fdd6c36774c56b"
677677
dependencies = [
678-
"clap 4.1.1",
678+
"clap 4.1.4",
679679
]
680680

681681
[[package]]
@@ -724,7 +724,7 @@ dependencies = [
724724

725725
[[package]]
726726
name = "clippy"
727-
version = "0.1.68"
727+
version = "0.1.69"
728728
dependencies = [
729729
"clippy_lints",
730730
"clippy_utils",
@@ -766,7 +766,7 @@ dependencies = [
766766

767767
[[package]]
768768
name = "clippy_lints"
769-
version = "0.1.68"
769+
version = "0.1.69"
770770
dependencies = [
771771
"cargo_metadata 0.14.0",
772772
"clippy_utils",
@@ -789,7 +789,7 @@ dependencies = [
789789

790790
[[package]]
791791
name = "clippy_utils"
792-
version = "0.1.68"
792+
version = "0.1.69"
793793
dependencies = [
794794
"arrayvec",
795795
"if_chain",
@@ -1168,7 +1168,7 @@ checksum = "a0afaad2b26fa326569eb264b1363e8ae3357618c43982b3f285f0774ce76b69"
11681168

11691169
[[package]]
11701170
name = "declare_clippy_lint"
1171-
version = "0.1.68"
1171+
version = "0.1.69"
11721172
dependencies = [
11731173
"itertools",
11741174
"quote",
@@ -1799,9 +1799,9 @@ dependencies = [
17991799

18001800
[[package]]
18011801
name = "git2"
1802-
version = "0.16.1"
1802+
version = "0.16.0"
18031803
source = "registry+https://github.com/rust-lang/crates.io-index"
1804-
checksum = "ccf7f68c2995f392c49fffb4f95ae2c873297830eb25c6bc4c114ce8f4562acc"
1804+
checksum = "be36bc9e0546df253c0cc41fd0af34f5e92845ad8509462ec76672fac6997f5b"
18051805
dependencies = [
18061806
"bitflags",
18071807
"libc",
@@ -2294,7 +2294,7 @@ name = "jsondoclint"
22942294
version = "0.1.0"
22952295
dependencies = [
22962296
"anyhow",
2297-
"clap 4.1.1",
2297+
"clap 4.1.4",
22982298
"fs-err",
22992299
"rustdoc-json-types",
23002300
"serde",
@@ -2365,9 +2365,9 @@ dependencies = [
23652365

23662366
[[package]]
23672367
name = "libgit2-sys"
2368-
version = "0.14.2+1.5.1"
2368+
version = "0.14.1+1.5.0"
23692369
source = "registry+https://github.com/rust-lang/crates.io-index"
2370-
checksum = "7f3d95f6b51075fe9810a7ae22c7095f12b98005ab364d8544797a825ce946a4"
2370+
checksum = "4a07fb2692bc3593bda59de45a502bb3071659f2c515e28c71e728306b038e17"
23712371
dependencies = [
23722372
"cc",
23732373
"libc",
@@ -2557,7 +2557,7 @@ dependencies = [
25572557
"ammonia",
25582558
"anyhow",
25592559
"chrono",
2560-
"clap 4.1.1",
2560+
"clap 4.1.4",
25612561
"clap_complete",
25622562
"elasticlunr-rs",
25632563
"env_logger 0.10.0",
@@ -3528,7 +3528,7 @@ dependencies = [
35283528
name = "rustbook"
35293529
version = "0.1.0"
35303530
dependencies = [
3531-
"clap 4.1.1",
3531+
"clap 4.1.4",
35323532
"env_logger 0.7.1",
35333533
"mdbook",
35343534
]
@@ -3672,6 +3672,7 @@ name = "rustc_ast"
36723672
version = "0.0.0"
36733673
dependencies = [
36743674
"bitflags",
3675+
"memchr",
36753676
"rustc_data_structures",
36763677
"rustc_index",
36773678
"rustc_lexer",
@@ -3729,6 +3730,7 @@ name = "rustc_ast_pretty"
37293730
version = "0.0.0"
37303731
dependencies = [
37313732
"rustc_ast",
3733+
"rustc_parse_format",
37323734
"rustc_span",
37333735
]
37343736

@@ -4926,7 +4928,7 @@ dependencies = [
49264928

49274929
[[package]]
49284930
name = "rustfmt-config_proc_macro"
4929-
version = "0.2.0"
4931+
version = "0.3.0"
49304932
dependencies = [
49314933
"proc-macro2",
49324934
"quote",
@@ -4936,7 +4938,7 @@ dependencies = [
49364938

49374939
[[package]]
49384940
name = "rustfmt-nightly"
4939-
version = "1.5.1"
4941+
version = "1.5.2"
49404942
dependencies = [
49414943
"annotate-snippets",
49424944
"anyhow",
@@ -5214,9 +5216,9 @@ checksum = "cc88c725d61fc6c3132893370cac4a0200e3fedf5da8331c570664b1987f5ca2"
52145216

52155217
[[package]]
52165218
name = "snap"
5217-
version = "1.0.1"
5219+
version = "1.1.0"
52185220
source = "registry+https://github.com/rust-lang/crates.io-index"
5219-
checksum = "da73c8f77aebc0e40c300b93f0a5f1bece7a248a36eee287d4e095f35c7b7d6e"
5221+
checksum = "5e9f0ab6ef7eb7353d9119c170a436d1bf248eea575ac42d19d12f4e34130831"
52205222

52215223
[[package]]
52225224
name = "snapbox"

RELEASES.md

+103
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,106 @@
1+
Version 1.67.0 (2023-01-26)
2+
==========================
3+
4+
<a id="1.67.0-Language"></a>
5+
6+
Language
7+
--------
8+
9+
- [Make `Sized` predicates coinductive, allowing cycles.](https://github.com/rust-lang/rust/pull/100386/)
10+
- [`#[must_use]` annotations on `async fn` also affect the `Future::Output`.](https://github.com/rust-lang/rust/pull/100633/)
11+
- [Elaborate supertrait obligations when deducing closure signatures.](https://github.com/rust-lang/rust/pull/101834/)
12+
- [Invalid literals are no longer an error under `cfg(FALSE)`.](https://github.com/rust-lang/rust/pull/102944/)
13+
- [Unreserve braced enum variants in value namespace.](https://github.com/rust-lang/rust/pull/103578/)
14+
15+
<a id="1.67.0-Compiler"></a>
16+
17+
Compiler
18+
--------
19+
20+
- [Enable varargs support for calling conventions other than `C` or `cdecl`.](https://github.com/rust-lang/rust/pull/97971/)
21+
- [Add new MIR constant propagation based on dataflow analysis.](https://github.com/rust-lang/rust/pull/101168/)
22+
- [Optimize field ordering by grouping m\*2^n-sized fields with equivalently aligned ones.](https://github.com/rust-lang/rust/pull/102750/)
23+
- [Stabilize native library modifier `verbatim`.](https://github.com/rust-lang/rust/pull/104360/)
24+
25+
Added and removed targets:
26+
27+
- [Add a tier 3 target for PowerPC on AIX](https://github.com/rust-lang/rust/pull/102293/), `powerpc64-ibm-aix`.
28+
- [Add a tier 3 target for the Sony PlayStation 1](https://github.com/rust-lang/rust/pull/102689/), `mipsel-sony-psx`.
29+
- [Add tier 3 `no_std` targets for the QNX Neutrino RTOS](https://github.com/rust-lang/rust/pull/102701/),
30+
`aarch64-unknown-nto-qnx710` and `x86_64-pc-nto-qnx710`.
31+
- [Remove tier 3 `linuxkernel` targets](https://github.com/rust-lang/rust/pull/104015/) (not used by the actual kernel).
32+
33+
Refer to Rust's [platform support page][platform-support-doc]
34+
for more information on Rust's tiered platform support.
35+
36+
<a id="1.67.0-Libraries"></a>
37+
38+
Libraries
39+
---------
40+
41+
- [Merge `crossbeam-channel` into `std::sync::mpsc`.](https://github.com/rust-lang/rust/pull/93563/)
42+
- [Fix inconsistent rounding of 0.5 when formatted to 0 decimal places.](https://github.com/rust-lang/rust/pull/102935/)
43+
- [Derive `Eq` and `Hash` for `ControlFlow`.](https://github.com/rust-lang/rust/pull/103084/)
44+
- [Don't build `compiler_builtins` with `-C panic=abort`.](https://github.com/rust-lang/rust/pull/103786/)
45+
46+
<a id="1.67.0-Stabilized-APIs"></a>
47+
48+
Stabilized APIs
49+
---------------
50+
51+
- [`{integer}::checked_ilog`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.checked_ilog)
52+
- [`{integer}::checked_ilog2`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.checked_ilog2)
53+
- [`{integer}::checked_ilog10`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.checked_ilog10)
54+
- [`{integer}::ilog`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.ilog)
55+
- [`{integer}::ilog2`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.ilog2)
56+
- [`{integer}::ilog10`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.ilog10)
57+
- [`NonZeroU*::ilog2`](https://doc.rust-lang.org/stable/std/num/struct.NonZeroU32.html#method.ilog2)
58+
- [`NonZeroU*::ilog10`](https://doc.rust-lang.org/stable/std/num/struct.NonZeroU32.html#method.ilog10)
59+
- [`NonZero*::BITS`](https://doc.rust-lang.org/stable/std/num/struct.NonZeroU32.html#associatedconstant.BITS)
60+
61+
These APIs are now stable in const contexts:
62+
63+
- [`char::from_u32`](https://doc.rust-lang.org/stable/std/primitive.char.html#method.from_u32)
64+
- [`char::from_digit`](https://doc.rust-lang.org/stable/std/primitive.char.html#method.from_digit)
65+
- [`char::to_digit`](https://doc.rust-lang.org/stable/std/primitive.char.html#method.to_digit)
66+
- [`core::char::from_u32`](https://doc.rust-lang.org/stable/core/char/fn.from_u32.html)
67+
- [`core::char::from_digit`](https://doc.rust-lang.org/stable/core/char/fn.from_digit.html)
68+
69+
<a id="1.67.0-Compatibility-Notes"></a>
70+
71+
Compatibility Notes
72+
-------------------
73+
74+
- [The layout of `repr(Rust)` types now groups m\*2^n-sized fields with
75+
equivalently aligned ones.](https://github.com/rust-lang/rust/pull/102750/)
76+
This is intended to be an optimization, but it is also known to increase type
77+
sizes in a few cases for the placement of enum tags. As a reminder, the layout
78+
of `repr(Rust)` types is an implementation detail, subject to change.
79+
- [0.5 now rounds to 0 when formatted to 0 decimal places.](https://github.com/rust-lang/rust/pull/102935/)
80+
This makes it consistent with the rest of floating point formatting that
81+
rounds ties toward even digits.
82+
- [Chains of `&&` and `||` will now drop temporaries from their sub-expressions in
83+
evaluation order, left-to-right.](https://github.com/rust-lang/rust/pull/103293/)
84+
Previously, it was "twisted" such that the _first_ expression dropped its
85+
temporaries _last_, after all of the other expressions dropped in order.
86+
- [Underscore suffixes on string literals are now a hard error.](https://github.com/rust-lang/rust/pull/103914/)
87+
This has been a future-compatibility warning since 1.20.0.
88+
- [Stop passing `-export-dynamic` to `wasm-ld`.](https://github.com/rust-lang/rust/pull/105405/)
89+
- [`main` is now mangled as `__main_void` on `wasm32-wasi`.](https://github.com/rust-lang/rust/pull/105468/)
90+
- [Cargo now emits an error if there are multiple registries in the configuration
91+
with the same index URL.](https://github.com/rust-lang/cargo/pull/10592)
92+
93+
<a id="1.67.0-Internal-Changes"></a>
94+
95+
Internal Changes
96+
----------------
97+
98+
These changes do not affect any public interfaces of Rust, but they represent
99+
significant improvements to the performance or internals of rustc and related
100+
tools.
101+
102+
- [Rewrite LLVM's archive writer in Rust.](https://github.com/rust-lang/rust/pull/97485/)
103+
1104
Version 1.66.1 (2023-01-10)
2105
===========================
3106

0 commit comments

Comments
 (0)