Skip to content

Commit 70c1ced

Browse files
authored
Merge branch 'master' into pretty-print-const-expr
2 parents 143e260 + 05a2be3 commit 70c1ced

File tree

21,925 files changed

+352404
-212227
lines changed

Some content is hidden

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

21,925 files changed

+352404
-212227
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
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

Lines changed: 16 additions & 3 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 61 additions & 14 deletions
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
@@ -63,9 +65,20 @@ jobs:
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
@@ -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,14 +306,19 @@ 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: {}
318+
- name: x86_64-gnu-llvm-18
319+
env:
320+
RUST_BACKTRACE: 1
321+
os: ubuntu-20.04-8core-32gb
300322
- name: x86_64-gnu-llvm-17
301323
env:
302324
RUST_BACKTRACE: 1
@@ -315,10 +337,10 @@ jobs:
315337
- name: dist-x86_64-apple
316338
env:
317339
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"
340+
RUST_CONFIGURE_ARGS: "--enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set rust.lto=thin --set rust.codegen-units=1"
319341
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
320342
MACOSX_DEPLOYMENT_TARGET: 10.12
321-
SELECT_XCODE: /Applications/Xcode_13.4.1.app
343+
SELECT_XCODE: /Applications/Xcode_14.3.1.app
322344
NO_LLVM_ASSERTIONS: 1
323345
NO_DEBUG_ASSERTIONS: 1
324346
NO_OVERFLOW_CHECKS: 1
@@ -328,32 +350,34 @@ jobs:
328350
- name: dist-apple-various
329351
env:
330352
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"
353+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc"
332354
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
333355
MACOSX_DEPLOYMENT_TARGET: 10.12
334-
SELECT_XCODE: /Applications/Xcode_13.4.1.app
356+
SELECT_XCODE: /Applications/Xcode_14.3.1.app
335357
NO_LLVM_ASSERTIONS: 1
336358
NO_DEBUG_ASSERTIONS: 1
337359
NO_OVERFLOW_CHECKS: 1
338360
os: macos-13
339361
- name: x86_64-apple-1
340362
env:
341363
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"
364+
RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc"
343365
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
344366
MACOSX_DEPLOYMENT_TARGET: 10.12
345367
MACOSX_STD_DEPLOYMENT_TARGET: 10.12
368+
SELECT_XCODE: /Applications/Xcode_14.3.1.app
346369
NO_LLVM_ASSERTIONS: 1
347370
NO_DEBUG_ASSERTIONS: 1
348371
NO_OVERFLOW_CHECKS: 1
349372
os: macos-13
350373
- name: x86_64-apple-2
351374
env:
352375
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"
376+
RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc"
354377
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
355378
MACOSX_DEPLOYMENT_TARGET: 10.12
356379
MACOSX_STD_DEPLOYMENT_TARGET: 10.12
380+
SELECT_XCODE: /Applications/Xcode_14.3.1.app
357381
NO_LLVM_ASSERTIONS: 1
358382
NO_DEBUG_ASSERTIONS: 1
359383
NO_OVERFLOW_CHECKS: 1
@@ -363,28 +387,28 @@ jobs:
363387
SCRIPT: "./x.py dist bootstrap --include-default-paths --host=aarch64-apple-darwin --target=aarch64-apple-darwin"
364388
RUST_CONFIGURE_ARGS: "--enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false --set rust.lto=thin"
365389
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
366-
SELECT_XCODE: /Applications/Xcode_13.4.1.app
390+
SELECT_XCODE: /Applications/Xcode_14.3.1.app
367391
USE_XCODE_CLANG: 1
368392
MACOSX_DEPLOYMENT_TARGET: 11.0
369393
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
370394
NO_LLVM_ASSERTIONS: 1
371395
NO_DEBUG_ASSERTIONS: 1
372396
NO_OVERFLOW_CHECKS: 1
373397
DIST_REQUIRE_ALL_TOOLS: 1
374-
os: macos-13-xlarge
398+
os: macos-14
375399
- name: aarch64-apple
376400
env:
377401
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"
402+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc"
379403
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
380-
SELECT_XCODE: /Applications/Xcode_13.4.1.app
404+
SELECT_XCODE: /Applications/Xcode_14.3.1.app
381405
USE_XCODE_CLANG: 1
382406
MACOSX_DEPLOYMENT_TARGET: 11.0
383407
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
384408
NO_LLVM_ASSERTIONS: 1
385409
NO_DEBUG_ASSERTIONS: 1
386410
NO_OVERFLOW_CHECKS: 1
387-
os: macos-13-xlarge
411+
os: macos-14
388412
- name: x86_64-msvc
389413
env:
390414
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --enable-profiler"
@@ -418,7 +442,7 @@ jobs:
418442
os: windows-2019-8core-32gb
419443
- name: dist-x86_64-msvc
420444
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"
445+
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"
422446
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
423447
DIST_REQUIRE_ALL_TOOLS: 1
424448
os: windows-2019-8core-32gb
@@ -455,9 +479,20 @@ jobs:
455479
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --enable-extended --enable-profiler"
456480
SCRIPT: python x.py dist bootstrap --include-default-paths
457481
os: windows-2019-8core-32gb
482+
defaults:
483+
run:
484+
shell: "${{ contains(matrix.os, 'windows') && 'msys2 {0}' || 'bash' }}"
458485
timeout-minutes: 600
459486
runs-on: "${{ matrix.os }}"
460487
steps:
488+
- if: "contains(matrix.os, 'windows')"
489+
uses: msys2/[email protected]
490+
with:
491+
msystem: "${{ contains(matrix.name, 'i686') && 'mingw32' || 'mingw64' }}"
492+
update: false
493+
release: true
494+
path-type: inherit
495+
install: "make dos2unix diffutils\n"
461496
- name: disable git crlf conversion
462497
run: git config --global core.autocrlf false
463498
- name: checkout the source code
@@ -565,6 +600,7 @@ jobs:
565600
CI_JOB_NAME: "${{ matrix.name }}"
566601
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
567602
HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
603+
DOCKER_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
568604
SCCACHE_BUCKET: rust-lang-ci-sccache2
569605
DEPLOY_BUCKET: rust-lang-ci2
570606
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
@@ -582,9 +618,20 @@ jobs:
582618
env:
583619
CODEGEN_BACKENDS: "llvm,cranelift"
584620
os: ubuntu-20.04-16core-64gb
621+
defaults:
622+
run:
623+
shell: "${{ contains(matrix.os, 'windows') && 'msys2 {0}' || 'bash' }}"
585624
timeout-minutes: 600
586625
runs-on: "${{ matrix.os }}"
587626
steps:
627+
- if: "contains(matrix.os, 'windows')"
628+
uses: msys2/[email protected]
629+
with:
630+
msystem: "${{ contains(matrix.name, 'i686') && 'mingw32' || 'mingw64' }}"
631+
update: false
632+
release: true
633+
path-type: inherit
634+
install: "make dos2unix diffutils\n"
588635
- name: disable git crlf conversion
589636
run: git config --global core.autocrlf false
590637
- name: checkout the source code

.gitmodules

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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]>

.reuse/dep5

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Files: compiler/*
1818
configure
1919
CONTRIBUTING.md
2020
COPYRIGHT
21+
INSTALL.md
2122
LICENSE-APACHE
2223
LICENSE-MIT
2324
README.md
@@ -51,7 +52,7 @@ Copyright: 2019 The Crossbeam Project Developers
5152
The Rust Project Developers (see https://thanks.rust-lang.org)
5253
License: MIT OR Apache-2.0
5354

54-
Files: library/std/src/sys/unix/locks/fuchsia_mutex.rs
55+
Files: library/std/src/sys/sync/mutex/fuchsia.rs
5556
Copyright: 2016 The Fuchsia Authors
5657
The Rust Project Developers (see https://thanks.rust-lang.org)
5758
License: BSD-2-Clause AND (MIT OR Apache-2.0)

0 commit comments

Comments
 (0)