Skip to content

Commit fbfda7d

Browse files
authored
Merge branch 'rust-lang:master' into test_main_memory_leak
2 parents b140cab + 83d0a94 commit fbfda7d

File tree

23,482 files changed

+425983
-247722
lines changed

Some content is hidden

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

23,482 files changed

+425983
-247722
lines changed

.git-blame-ignore-revs

+3
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ f97fddab91fbf290ea5b691fe355d6f915220b6e
2020
cc907f80b95c6ec530c5ee1b05b044a468f07eca
2121
# format let-chains
2222
b2d2184edea578109a48ec3d8decbee5948e8f35
23+
# test directives migration
24+
6e48b96692d63a79a14563f27fe5185f122434f8
25+
ec2cc761bc7067712ecc7734502f703fe3b024c8

.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:

.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)

.github/workflows/ci.yml

+66-23
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ name: CI
2828
- "**"
2929
permissions:
3030
contents: read
31+
packages: write
3132
defaults:
3233
run:
3334
shell: bash
@@ -42,6 +43,7 @@ jobs:
4243
CI_JOB_NAME: "${{ matrix.name }}"
4344
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
4445
HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
46+
DOCKER_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
4547
SCCACHE_BUCKET: rust-lang-ci-sccache2
4648
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
4749
CACHE_DOMAIN: ci-caches.rust-lang.org
@@ -56,16 +58,27 @@ jobs:
5658
- name: mingw-check-tidy
5759
os: ubuntu-20.04-4core-16gb
5860
env: {}
59-
- name: x86_64-gnu-llvm-16
61+
- name: x86_64-gnu-llvm-17
6062
env:
6163
ENABLE_GCC_CODEGEN: "1"
6264
os: ubuntu-20.04-16core-64gb
6365
- name: x86_64-gnu-tools
6466
os: ubuntu-20.04-16core-64gb
6567
env: {}
68+
defaults:
69+
run:
70+
shell: "${{ contains(matrix.os, 'windows') && 'msys2 {0}' || 'bash' }}"
6671
timeout-minutes: 600
6772
runs-on: "${{ matrix.os }}"
6873
steps:
74+
- if: "contains(matrix.os, 'windows')"
75+
uses: msys2/[email protected]
76+
with:
77+
msystem: "${{ contains(matrix.name, 'i686') && 'mingw32' || 'mingw64' }}"
78+
update: false
79+
release: true
80+
path-type: inherit
81+
install: "make dos2unix diffutils\n"
6982
- name: disable git crlf conversion
7083
run: git config --global core.autocrlf false
7184
- name: checkout the source code
@@ -143,7 +156,7 @@ jobs:
143156
run: src/ci/scripts/verify-stable-version-number.sh
144157
if: success() && !env.SKIP_JOB
145158
- name: run the build
146-
run: src/ci/scripts/run-build-from-ci.sh
159+
run: src/ci/scripts/run-build-from-ci.sh 2>&1
147160
env:
148161
AWS_ACCESS_KEY_ID: "${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
149162
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
@@ -153,7 +166,7 @@ jobs:
153166
run: src/ci/scripts/create-doc-artifacts.sh
154167
if: success() && !env.SKIP_JOB
155168
- name: upload artifacts to github
156-
uses: actions/upload-artifact@v3
169+
uses: actions/upload-artifact@v4
157170
with:
158171
name: "${{ env.DOC_ARTIFACT_NAME }}"
159172
path: obj/artifacts/doc
@@ -172,6 +185,7 @@ jobs:
172185
CI_JOB_NAME: "${{ matrix.name }}"
173186
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
174187
HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
188+
DOCKER_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
175189
SCCACHE_BUCKET: rust-lang-ci-sccache2
176190
DEPLOY_BUCKET: rust-lang-ci2
177191
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
@@ -221,6 +235,9 @@ jobs:
221235
- name: dist-loongarch64-linux
222236
os: ubuntu-20.04-8core-32gb
223237
env: {}
238+
- name: dist-ohos
239+
os: ubuntu-20.04-8core-32gb
240+
env: {}
224241
- name: dist-powerpc-linux
225242
os: ubuntu-20.04-8core-32gb
226243
env: {}
@@ -289,19 +306,20 @@ jobs:
289306
os: ubuntu-20.04-4core-16gb
290307
env: {}
291308
- name: x86_64-gnu-integration
292-
os: ubuntu-20.04-16core-64gb
293-
env: {}
309+
env:
310+
CI_ONLY_WHEN_CHANNEL: nightly
311+
os: ubuntu-20.04-8core-32gb
294312
- name: x86_64-gnu-debug
295313
os: ubuntu-20.04-8core-32gb
296314
env: {}
297315
- name: x86_64-gnu-distcheck
298316
os: ubuntu-20.04-8core-32gb
299317
env: {}
300-
- name: x86_64-gnu-llvm-17
318+
- name: x86_64-gnu-llvm-18
301319
env:
302320
RUST_BACKTRACE: 1
303321
os: ubuntu-20.04-8core-32gb
304-
- name: x86_64-gnu-llvm-16
322+
- name: x86_64-gnu-llvm-17
305323
env:
306324
RUST_BACKTRACE: 1
307325
os: ubuntu-20.04-8core-32gb
@@ -315,10 +333,10 @@ jobs:
315333
- name: dist-x86_64-apple
316334
env:
317335
SCRIPT: "./x.py dist bootstrap --include-default-paths --host=x86_64-apple-darwin --target=x86_64-apple-darwin"
318-
RUST_CONFIGURE_ARGS: "--enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false --set rust.lto=thin"
336+
RUST_CONFIGURE_ARGS: "--enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set rust.lto=thin --set rust.codegen-units=1"
319337
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
320338
MACOSX_DEPLOYMENT_TARGET: 10.12
321-
SELECT_XCODE: /Applications/Xcode_13.4.1.app
339+
SELECT_XCODE: /Applications/Xcode_14.3.1.app
322340
NO_LLVM_ASSERTIONS: 1
323341
NO_DEBUG_ASSERTIONS: 1
324342
NO_OVERFLOW_CHECKS: 1
@@ -328,32 +346,34 @@ jobs:
328346
- name: dist-apple-various
329347
env:
330348
SCRIPT: "./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim"
331-
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false"
349+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc"
332350
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
333351
MACOSX_DEPLOYMENT_TARGET: 10.12
334-
SELECT_XCODE: /Applications/Xcode_13.4.1.app
352+
SELECT_XCODE: /Applications/Xcode_14.3.1.app
335353
NO_LLVM_ASSERTIONS: 1
336354
NO_DEBUG_ASSERTIONS: 1
337355
NO_OVERFLOW_CHECKS: 1
338356
os: macos-13
339357
- name: x86_64-apple-1
340358
env:
341359
SCRIPT: "./x.py --stage 2 test --skip tests/ui --skip tests/rustdoc --skip tests/run-make-fulldeps"
342-
RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false"
360+
RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc"
343361
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
344362
MACOSX_DEPLOYMENT_TARGET: 10.12
345363
MACOSX_STD_DEPLOYMENT_TARGET: 10.12
364+
SELECT_XCODE: /Applications/Xcode_14.3.1.app
346365
NO_LLVM_ASSERTIONS: 1
347366
NO_DEBUG_ASSERTIONS: 1
348367
NO_OVERFLOW_CHECKS: 1
349368
os: macos-13
350369
- name: x86_64-apple-2
351370
env:
352371
SCRIPT: "./x.py --stage 2 test tests/ui tests/rustdoc tests/run-make-fulldeps"
353-
RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false"
372+
RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc"
354373
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
355374
MACOSX_DEPLOYMENT_TARGET: 10.12
356375
MACOSX_STD_DEPLOYMENT_TARGET: 10.12
376+
SELECT_XCODE: /Applications/Xcode_14.3.1.app
357377
NO_LLVM_ASSERTIONS: 1
358378
NO_DEBUG_ASSERTIONS: 1
359379
NO_OVERFLOW_CHECKS: 1
@@ -363,28 +383,28 @@ jobs:
363383
SCRIPT: "./x.py dist bootstrap --include-default-paths --host=aarch64-apple-darwin --target=aarch64-apple-darwin"
364384
RUST_CONFIGURE_ARGS: "--enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false --set rust.lto=thin"
365385
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
366-
SELECT_XCODE: /Applications/Xcode_13.4.1.app
386+
SELECT_XCODE: /Applications/Xcode_14.3.1.app
367387
USE_XCODE_CLANG: 1
368388
MACOSX_DEPLOYMENT_TARGET: 11.0
369389
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
370390
NO_LLVM_ASSERTIONS: 1
371391
NO_DEBUG_ASSERTIONS: 1
372392
NO_OVERFLOW_CHECKS: 1
373393
DIST_REQUIRE_ALL_TOOLS: 1
374-
os: macos-13-xlarge
394+
os: macos-14
375395
- name: aarch64-apple
376396
env:
377397
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"
398+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc"
379399
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
380-
SELECT_XCODE: /Applications/Xcode_13.4.1.app
400+
SELECT_XCODE: /Applications/Xcode_14.3.1.app
381401
USE_XCODE_CLANG: 1
382402
MACOSX_DEPLOYMENT_TARGET: 11.0
383403
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
384404
NO_LLVM_ASSERTIONS: 1
385405
NO_DEBUG_ASSERTIONS: 1
386406
NO_OVERFLOW_CHECKS: 1
387-
os: macos-13-xlarge
407+
os: macos-14
388408
- name: x86_64-msvc
389409
env:
390410
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --enable-profiler"
@@ -418,7 +438,7 @@ jobs:
418438
os: windows-2019-8core-32gb
419439
- name: dist-x86_64-msvc
420440
env:
421-
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"
441+
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.codegen-units=1"
422442
SCRIPT: python x.py build --set rust.debug=true opt-dist && PGO_HOST=x86_64-pc-windows-msvc ./build/x86_64-pc-windows-msvc/stage0-tools-bin/opt-dist windows-ci -- python x.py dist bootstrap --include-default-paths
423443
DIST_REQUIRE_ALL_TOOLS: 1
424444
os: windows-2019-8core-32gb
@@ -455,9 +475,20 @@ jobs:
455475
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --enable-extended --enable-profiler"
456476
SCRIPT: python x.py dist bootstrap --include-default-paths
457477
os: windows-2019-8core-32gb
478+
defaults:
479+
run:
480+
shell: "${{ contains(matrix.os, 'windows') && 'msys2 {0}' || 'bash' }}"
458481
timeout-minutes: 600
459482
runs-on: "${{ matrix.os }}"
460483
steps:
484+
- if: "contains(matrix.os, 'windows')"
485+
uses: msys2/[email protected]
486+
with:
487+
msystem: "${{ contains(matrix.name, 'i686') && 'mingw32' || 'mingw64' }}"
488+
update: false
489+
release: true
490+
path-type: inherit
491+
install: "make dos2unix diffutils\n"
461492
- name: disable git crlf conversion
462493
run: git config --global core.autocrlf false
463494
- name: checkout the source code
@@ -535,7 +566,7 @@ jobs:
535566
run: src/ci/scripts/verify-stable-version-number.sh
536567
if: success() && !env.SKIP_JOB
537568
- name: run the build
538-
run: src/ci/scripts/run-build-from-ci.sh
569+
run: src/ci/scripts/run-build-from-ci.sh 2>&1
539570
env:
540571
AWS_ACCESS_KEY_ID: "${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
541572
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
@@ -545,7 +576,7 @@ jobs:
545576
run: src/ci/scripts/create-doc-artifacts.sh
546577
if: success() && !env.SKIP_JOB
547578
- name: upload artifacts to github
548-
uses: actions/upload-artifact@v3
579+
uses: actions/upload-artifact@v4
549580
with:
550581
name: "${{ env.DOC_ARTIFACT_NAME }}"
551582
path: obj/artifacts/doc
@@ -565,6 +596,7 @@ jobs:
565596
CI_JOB_NAME: "${{ matrix.name }}"
566597
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
567598
HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
599+
DOCKER_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
568600
SCCACHE_BUCKET: rust-lang-ci-sccache2
569601
DEPLOY_BUCKET: rust-lang-ci2
570602
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
@@ -582,9 +614,20 @@ jobs:
582614
env:
583615
CODEGEN_BACKENDS: "llvm,cranelift"
584616
os: ubuntu-20.04-16core-64gb
617+
defaults:
618+
run:
619+
shell: "${{ contains(matrix.os, 'windows') && 'msys2 {0}' || 'bash' }}"
585620
timeout-minutes: 600
586621
runs-on: "${{ matrix.os }}"
587622
steps:
623+
- if: "contains(matrix.os, 'windows')"
624+
uses: msys2/[email protected]
625+
with:
626+
msystem: "${{ contains(matrix.name, 'i686') && 'mingw32' || 'mingw64' }}"
627+
update: false
628+
release: true
629+
path-type: inherit
630+
install: "make dos2unix diffutils\n"
588631
- name: disable git crlf conversion
589632
run: git config --global core.autocrlf false
590633
- name: checkout the source code
@@ -662,7 +705,7 @@ jobs:
662705
run: src/ci/scripts/verify-stable-version-number.sh
663706
if: success() && !env.SKIP_JOB
664707
- name: run the build
665-
run: src/ci/scripts/run-build-from-ci.sh
708+
run: src/ci/scripts/run-build-from-ci.sh 2>&1
666709
env:
667710
AWS_ACCESS_KEY_ID: "${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
668711
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
@@ -672,7 +715,7 @@ jobs:
672715
run: src/ci/scripts/create-doc-artifacts.sh
673716
if: success() && !env.SKIP_JOB
674717
- name: upload artifacts to github
675-
uses: actions/upload-artifact@v3
718+
uses: actions/upload-artifact@v4
676719
with:
677720
name: "${{ env.DOC_ARTIFACT_NAME }}"
678721
path: obj/artifacts/doc

.github/workflows/dependencies.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ jobs:
6565
# Remove first line that always just says "Updating crates.io index"
6666
run: cargo update 2>&1 | sed '/crates.io index/d' | tee -a cargo_update.log
6767
- name: upload Cargo.lock artifact for use in PR
68-
uses: actions/upload-artifact@v3
68+
uses: actions/upload-artifact@v4
6969
with:
7070
name: Cargo-lock
7171
path: Cargo.lock
7272
retention-days: 1
7373
- name: upload cargo-update log artifact for use in PR
74-
uses: actions/upload-artifact@v3
74+
uses: actions/upload-artifact@v4
7575
with:
7676
name: cargo-updates
7777
path: cargo_update.log
@@ -90,11 +90,11 @@ jobs:
9090
uses: actions/checkout@v4
9191

9292
- name: download Cargo.lock from update job
93-
uses: actions/download-artifact@v3
93+
uses: actions/download-artifact@v4
9494
with:
9595
name: Cargo-lock
9696
- name: download cargo-update log from update job
97-
uses: actions/download-artifact@v3
97+
uses: actions/download-artifact@v4
9898
with:
9999
name: cargo-updates
100100

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
[submodule "src/llvm-project"]
3434
path = src/llvm-project
3535
url = https://github.com/rust-lang/llvm-project.git
36-
branch = rustc/17.0-2023-12-14
36+
branch = rustc/18.0-2024-02-13
3737
shallow = true
3838
[submodule "src/doc/embedded-book"]
3939
path = src/doc/embedded-book

.mailmap

+3-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Clement Miao <[email protected]>
129129
Clément Renault <[email protected]>
130130
Cliff Dyer <[email protected]>
131131
Clinton Ryan <[email protected]>
132-
Corey Richardson <[email protected]> Elaine "See More" Nemo <[email protected]>
132+
133133
Crazycolorz5 <[email protected]>
134134
135135
Cyryl Płotnicki <[email protected]>
@@ -259,6 +259,7 @@ James Hinshelwood <[email protected]> <[email protected]>
259259
260260
James Perry <[email protected]>
261261
James Sanderson <[email protected]>
262+
262263
Jaro Fietz <[email protected]>
263264
Jason Fager <[email protected]>
264265
@@ -323,6 +324,7 @@ Katze <[email protected]>
323324
324325
Kerem Kat <[email protected]>
325326
Kevin Butler <[email protected]>
327+
326328
Kevin Jiang <[email protected]>
327329
Kornel Lesiński <[email protected]>
328330
Krishna Sai Veera Reddy <[email protected]>

0 commit comments

Comments
 (0)