Skip to content

Commit adad1f4

Browse files
committed
Merge remote-tracking branch 'up/master' into HEAD
2 parents c55ba93 + e927184 commit adad1f4

File tree

3,053 files changed

+50416
-36735
lines changed

Some content is hidden

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

3,053 files changed

+50416
-36735
lines changed

Diff for: .github/ISSUE_TEMPLATE/diagnostics.yaml

+16-3
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,23 @@ body:
5252
render: Rust
5353
validations:
5454
required: false
55-
- type: markdown
55+
- type: textarea
56+
id: version
5657
attributes:
57-
value: |
58-
If you're using the stable version of the compiler, you should also check if the bug also exists in the beta or nightly versions. The output might also be different depending on the Edition.
58+
label: Rust Version
59+
description: Please provide the `rustc` version, `rustc --version --verbose`. Make sure that you're using the latest version of the compiler, and not an outdated stable or nightly release!
60+
placeholder: |
61+
$ rustc --version --verbose
62+
rustc 1.XX.Y (SHORTHASH DATE)
63+
binary: rustc
64+
commit-hash: LONGHASHVALUE
65+
commit-date: DATE
66+
host: PLATFORMTRIPLE
67+
release: 1.XX.Y
68+
LLVM version: XX.YY.ZZ
69+
render: Shell
70+
validations:
71+
required: true
5972
- type: textarea
6073
id: extra
6174
attributes:

Diff for: .github/ISSUE_TEMPLATE/ice.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ body:
4040
id: version
4141
attributes:
4242
label: Rust Version
43-
description: Please provide the `rustc` version, `rustc --version --verbose`
43+
description: Please provide the `rustc` version, `rustc --version --verbose`. Make sure that you're using the latest version of the compiler, and not an outdated stable or nightly release!
4444
placeholder: |
4545
$ rustc --version --verbose
4646
rustc 1.XX.Y (SHORTHASH DATE)

Diff for: .github/workflows/ci.yml

+6-17
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,9 @@ jobs:
289289
os: ubuntu-20.04-4core-16gb
290290
env: {}
291291
- name: x86_64-gnu-integration
292+
env:
293+
CI_ONLY_WHEN_CHANNEL: nightly
292294
os: ubuntu-20.04-16core-64gb
293-
env: {}
294295
- name: x86_64-gnu-debug
295296
os: ubuntu-20.04-8core-32gb
296297
env: {}
@@ -360,8 +361,8 @@ jobs:
360361
os: macos-13
361362
- name: dist-aarch64-apple
362363
env:
363-
SCRIPT: "./x.py dist bootstrap --include-default-paths --host=aarch64-apple-darwin --target=aarch64-apple-darwin"
364-
RUST_CONFIGURE_ARGS: "--enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false --set rust.lto=thin"
364+
SCRIPT: "./x.py dist bootstrap --include-default-paths --stage 2"
365+
RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --host=aarch64-apple-darwin --target=aarch64-apple-darwin --enable-full-tools --enable-sanitizers --enable-profiler --disable-docs --set rust.jemalloc --set llvm.ninja=false"
365366
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
366367
SELECT_XCODE: /Applications/Xcode_13.4.1.app
367368
USE_XCODE_CLANG: 1
@@ -371,20 +372,8 @@ jobs:
371372
NO_DEBUG_ASSERTIONS: 1
372373
NO_OVERFLOW_CHECKS: 1
373374
DIST_REQUIRE_ALL_TOOLS: 1
374-
os: macos-13-xlarge
375-
- name: aarch64-apple
376-
env:
377-
SCRIPT: "./x.py --stage 2 test --host=aarch64-apple-darwin --target=aarch64-apple-darwin"
378-
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false"
379-
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
380-
SELECT_XCODE: /Applications/Xcode_13.4.1.app
381-
USE_XCODE_CLANG: 1
382-
MACOSX_DEPLOYMENT_TARGET: 11.0
383-
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
384-
NO_LLVM_ASSERTIONS: 1
385-
NO_DEBUG_ASSERTIONS: 1
386-
NO_OVERFLOW_CHECKS: 1
387-
os: macos-13-xlarge
375+
JEMALLOC_SYS_WITH_LG_PAGE: 14
376+
os: macos-13
388377
- name: x86_64-msvc
389378
env:
390379
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --enable-profiler"

Diff for: Cargo.lock

+40-29
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
285285

286286
[[package]]
287287
name = "bitflags"
288-
version = "2.4.0"
288+
version = "2.4.1"
289289
source = "registry+https://github.com/rust-lang/crates.io-index"
290-
checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635"
290+
checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07"
291291

292292
[[package]]
293293
name = "block-buffer"
@@ -537,7 +537,7 @@ checksum = "2da6da31387c7e4ef160ffab6d5e7f00c42626fe39aea70a7b0f1773f7dd6c1b"
537537

538538
[[package]]
539539
name = "clippy"
540-
version = "0.1.76"
540+
version = "0.1.77"
541541
dependencies = [
542542
"anstream",
543543
"clippy_config",
@@ -565,7 +565,7 @@ dependencies = [
565565

566566
[[package]]
567567
name = "clippy_config"
568-
version = "0.1.76"
568+
version = "0.1.77"
569569
dependencies = [
570570
"rustc-semver",
571571
"serde",
@@ -588,7 +588,7 @@ dependencies = [
588588

589589
[[package]]
590590
name = "clippy_lints"
591-
version = "0.1.76"
591+
version = "0.1.77"
592592
dependencies = [
593593
"arrayvec",
594594
"cargo_metadata 0.15.4",
@@ -613,7 +613,7 @@ dependencies = [
613613

614614
[[package]]
615615
name = "clippy_utils"
616-
version = "0.1.76"
616+
version = "0.1.77"
617617
dependencies = [
618618
"arrayvec",
619619
"clippy_config",
@@ -704,9 +704,9 @@ checksum = "55b672471b4e9f9e95499ea597ff64941a309b2cdbffcc46f2cc5e2d971fd335"
704704

705705
[[package]]
706706
name = "compiler_builtins"
707-
version = "0.1.103"
707+
version = "0.1.104"
708708
source = "registry+https://github.com/rust-lang/crates.io-index"
709-
checksum = "a3b73c3443a5fd2438d7ba4853c64e4c8efc2404a9e28a9234cc2d5eebc6c242"
709+
checksum = "99c3f9035afc33f4358773239573f7d121099856753e1bbd2a6a5207098fc741"
710710
dependencies = [
711711
"cc",
712712
"rustc-std-workspace-core",
@@ -984,7 +984,7 @@ checksum = "a0afaad2b26fa326569eb264b1363e8ae3357618c43982b3f285f0774ce76b69"
984984

985985
[[package]]
986986
name = "declare_clippy_lint"
987-
version = "0.1.76"
987+
version = "0.1.77"
988988
dependencies = [
989989
"itertools",
990990
"quote",
@@ -2465,6 +2465,7 @@ dependencies = [
24652465
"ctrlc",
24662466
"env_logger",
24672467
"getrandom",
2468+
"jemalloc-sys",
24682469
"lazy_static",
24692470
"libc",
24702471
"libffi",
@@ -2474,7 +2475,6 @@ dependencies = [
24742475
"rand",
24752476
"regex",
24762477
"rustc_version",
2477-
"serde",
24782478
"smallvec",
24792479
"ui_test",
24802480
]
@@ -3280,9 +3280,9 @@ dependencies = [
32803280

32813281
[[package]]
32823282
name = "rustc-build-sysroot"
3283-
version = "0.4.2"
3283+
version = "0.4.4"
32843284
source = "registry+https://github.com/rust-lang/crates.io-index"
3285-
checksum = "8ed2a90dfa5232ed5ff21d53d4df655f315ab316ea06fc508f1c74bcedb1ce6c"
3285+
checksum = "39dcf8d82b1f79a179bdb284dc44db440a9666eefa5a6df5ef282d6db930d544"
32863286
dependencies = [
32873287
"anyhow",
32883288
"rustc_version",
@@ -3370,7 +3370,7 @@ dependencies = [
33703370
name = "rustc_abi"
33713371
version = "0.0.0"
33723372
dependencies = [
3373-
"bitflags 1.3.2",
3373+
"bitflags 2.4.1",
33743374
"rand",
33753375
"rand_xoshiro",
33763376
"rustc_data_structures",
@@ -3401,7 +3401,7 @@ dependencies = [
34013401
name = "rustc_ast"
34023402
version = "0.0.0"
34033403
dependencies = [
3404-
"bitflags 1.3.2",
3404+
"bitflags 2.4.1",
34053405
"memchr",
34063406
"rustc_data_structures",
34073407
"rustc_index",
@@ -3552,7 +3552,7 @@ dependencies = [
35523552
name = "rustc_codegen_llvm"
35533553
version = "0.0.0"
35543554
dependencies = [
3555-
"bitflags 1.3.2",
3555+
"bitflags 2.4.1",
35563556
"itertools",
35573557
"libc",
35583558
"measureme",
@@ -3587,7 +3587,7 @@ name = "rustc_codegen_ssa"
35873587
version = "0.0.0"
35883588
dependencies = [
35893589
"ar_archive_writer",
3590-
"bitflags 1.3.2",
3590+
"bitflags 2.4.1",
35913591
"cc",
35923592
"itertools",
35933593
"jobserver",
@@ -3654,7 +3654,7 @@ name = "rustc_data_structures"
36543654
version = "0.0.0"
36553655
dependencies = [
36563656
"arrayvec",
3657-
"bitflags 1.3.2",
3657+
"bitflags 2.4.1",
36583658
"elsa",
36593659
"ena",
36603660
"indexmap",
@@ -3738,6 +3738,7 @@ dependencies = [
37383738
"rustc_trait_selection",
37393739
"rustc_ty_utils",
37403740
"serde_json",
3741+
"shlex",
37413742
"time",
37423743
"tracing",
37433744
"windows",
@@ -3797,7 +3798,6 @@ dependencies = [
37973798
name = "rustc_expand"
37983799
version = "0.0.0"
37993800
dependencies = [
3800-
"crossbeam-channel",
38013801
"rustc_ast",
38023802
"rustc_ast_passes",
38033803
"rustc_ast_pretty",
@@ -3877,6 +3877,7 @@ dependencies = [
38773877
"rustc_feature",
38783878
"rustc_fluent_macro",
38793879
"rustc_hir",
3880+
"rustc_hir_pretty",
38803881
"rustc_index",
38813882
"rustc_infer",
38823883
"rustc_lint_defs",
@@ -4121,7 +4122,7 @@ dependencies = [
41214122
name = "rustc_metadata"
41224123
version = "0.0.0"
41234124
dependencies = [
4124-
"bitflags 1.3.2",
4125+
"bitflags 2.4.1",
41254126
"libloading 0.7.4",
41264127
"odht",
41274128
"rustc_ast",
@@ -4151,7 +4152,7 @@ dependencies = [
41514152
name = "rustc_middle"
41524153
version = "0.0.0"
41534154
dependencies = [
4154-
"bitflags 1.3.2",
4155+
"bitflags 2.4.1",
41554156
"derive_more",
41564157
"either",
41574158
"field-offset",
@@ -4286,7 +4287,7 @@ dependencies = [
42864287
name = "rustc_parse"
42874288
version = "0.0.0"
42884289
dependencies = [
4289-
"bitflags 1.3.2",
4290+
"bitflags 2.4.1",
42904291
"rustc_ast",
42914292
"rustc_ast_pretty",
42924293
"rustc_data_structures",
@@ -4340,6 +4341,7 @@ dependencies = [
43404341
name = "rustc_pattern_analysis"
43414342
version = "0.0.0"
43424343
dependencies = [
4344+
"derivative",
43434345
"rustc_apfloat",
43444346
"rustc_arena",
43454347
"rustc_data_structures",
@@ -4354,6 +4356,7 @@ dependencies = [
43544356
"rustc_target",
43554357
"smallvec",
43564358
"tracing",
4359+
"typed-arena",
43574360
]
43584361

43594362
[[package]]
@@ -4422,7 +4425,7 @@ dependencies = [
44224425
name = "rustc_resolve"
44234426
version = "0.0.0"
44244427
dependencies = [
4425-
"bitflags 1.3.2",
4428+
"bitflags 2.4.1",
44264429
"pulldown-cmark",
44274430
"rustc_arena",
44284431
"rustc_ast",
@@ -4461,7 +4464,7 @@ dependencies = [
44614464
name = "rustc_session"
44624465
version = "0.0.0"
44634466
dependencies = [
4464-
"bitflags 1.3.2",
4467+
"bitflags 2.4.1",
44654468
"getopts",
44664469
"libc",
44674470
"rustc_ast",
@@ -4519,7 +4522,7 @@ dependencies = [
45194522
name = "rustc_symbol_mangling"
45204523
version = "0.0.0"
45214524
dependencies = [
4522-
"bitflags 1.3.2",
4525+
"bitflags 2.4.1",
45234526
"punycode",
45244527
"rustc-demangle",
45254528
"rustc_data_structures",
@@ -4537,7 +4540,7 @@ dependencies = [
45374540
name = "rustc_target"
45384541
version = "0.0.0"
45394542
dependencies = [
4540-
"bitflags 1.3.2",
4543+
"bitflags 2.4.1",
45414544
"object",
45424545
"rustc_abi",
45434546
"rustc_data_structures",
@@ -4561,6 +4564,7 @@ checksum = "8ba09476327c4b70ccefb6180f046ef588c26a24cf5d269a9feba316eb4f029f"
45614564
name = "rustc_trait_selection"
45624565
version = "0.0.0"
45634566
dependencies = [
4567+
"itertools",
45644568
"rustc_ast",
45654569
"rustc_attr",
45664570
"rustc_data_structures",
@@ -4635,12 +4639,13 @@ dependencies = [
46354639
name = "rustc_type_ir"
46364640
version = "0.0.0"
46374641
dependencies = [
4638-
"bitflags 1.3.2",
4642+
"bitflags 2.4.1",
46394643
"derivative",
46404644
"rustc_data_structures",
46414645
"rustc_index",
46424646
"rustc_macros",
46434647
"rustc_serialize",
4648+
"rustc_span",
46444649
"smallvec",
46454650
]
46464651

@@ -4765,7 +4770,7 @@ version = "0.38.19"
47654770
source = "registry+https://github.com/rust-lang/crates.io-index"
47664771
checksum = "745ecfa778e66b2b63c88a61cb36e0eea109e803b0b86bf9879fbc77c70e86ed"
47674772
dependencies = [
4768-
"bitflags 2.4.0",
4773+
"bitflags 2.4.1",
47694774
"errno",
47704775
"libc",
47714776
"linux-raw-sys",
@@ -5203,9 +5208,9 @@ dependencies = [
52035208

52045209
[[package]]
52055210
name = "sysinfo"
5206-
version = "0.29.2"
5211+
version = "0.29.11"
52075212
source = "registry+https://github.com/rust-lang/crates.io-index"
5208-
checksum = "9557d0845b86eea8182f7b10dff120214fb6cd9fd937b6f4917714e546a38695"
5213+
checksum = "cd727fc423c2060f6c92d9534cef765c65a6ed3f428a03d7def74a8c4348e666"
52095214
dependencies = [
52105215
"cfg-if",
52115216
"core-foundation-sys",
@@ -5689,6 +5694,12 @@ dependencies = [
56895694
"rustc-hash",
56905695
]
56915696

5697+
[[package]]
5698+
name = "typed-arena"
5699+
version = "2.0.2"
5700+
source = "registry+https://github.com/rust-lang/crates.io-index"
5701+
checksum = "6af6ae20167a9ece4bcb41af5b80f8a1f1df981f6391189ce00fd257af04126a"
5702+
56925703
[[package]]
56935704
name = "typenum"
56945705
version = "1.16.0"

Diff for: Cargo.toml

+8
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ gimli.debug = 0
104104
miniz_oxide.debug = 0
105105
object.debug = 0
106106

107+
# These are very thin wrappers around executing lld with the right binary name.
108+
# Basically nothing within them can go wrong without having been explicitly logged anyway.
109+
# We ship these in every rustc tarball and even after compression they add up
110+
# to around 0.6MB of data every user needs to download (and 15MB on disk).
111+
[profile.release.package.lld-wrapper]
112+
debug = 0
113+
strip = true
114+
107115
[patch.crates-io]
108116
# See comments in `library/rustc-std-workspace-core/README.md` for what's going on
109117
# here

0 commit comments

Comments
 (0)