Skip to content

Commit 24aab52

Browse files
Merge remote-tracking branch 'origin/master' into mpk/add-long-error-message-for-E0311
2 parents eda2a40 + 8b70583 commit 24aab52

File tree

5,295 files changed

+132677
-40722
lines changed

Some content is hidden

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

5,295 files changed

+132677
-40722
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@ name: CI
2525
pull_request:
2626
branches:
2727
- "**"
28+
permissions:
29+
contents: read
2830
defaults:
2931
run:
3032
shell: bash
3133
jobs:
3234
pr:
35+
permissions:
36+
actions: write
3337
name: PR
3438
env:
3539
CI_JOB_NAME: "${{ matrix.name }}"
@@ -142,6 +146,8 @@ jobs:
142146
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
143147
if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
144148
auto:
149+
permissions:
150+
actions: write
145151
name: auto
146152
env:
147153
CI_JOB_NAME: "${{ matrix.name }}"
@@ -291,7 +297,7 @@ jobs:
291297
os: ubuntu-20.04-xl
292298
- name: dist-x86_64-apple
293299
env:
294-
SCRIPT: "./x.py dist --host=x86_64-apple-darwin --target=x86_64-apple-darwin"
300+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host=x86_64-apple-darwin --target=x86_64-apple-darwin"
295301
RUST_CONFIGURE_ARGS: "--enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false"
296302
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
297303
MACOSX_DEPLOYMENT_TARGET: 10.7
@@ -302,7 +308,7 @@ jobs:
302308
os: macos-latest
303309
- name: dist-apple-various
304310
env:
305-
SCRIPT: "./x.py dist --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim"
311+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim"
306312
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false"
307313
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
308314
MACOSX_DEPLOYMENT_TARGET: 10.7
@@ -312,7 +318,7 @@ jobs:
312318
os: macos-latest
313319
- name: dist-x86_64-apple-alt
314320
env:
315-
SCRIPT: "./x.py dist"
321+
SCRIPT: "./x.py dist bootstrap --include-default-paths"
316322
RUST_CONFIGURE_ARGS: "--enable-extended --enable-profiler --set rust.jemalloc --set llvm.ninja=false"
317323
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
318324
MACOSX_DEPLOYMENT_TARGET: 10.7
@@ -344,7 +350,7 @@ jobs:
344350
os: macos-latest
345351
- name: dist-aarch64-apple
346352
env:
347-
SCRIPT: "./x.py dist --stage 2"
353+
SCRIPT: "./x.py dist bootstrap --include-default-paths --stage 2"
348354
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"
349355
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
350356
USE_XCODE_CLANG: 1
@@ -418,33 +424,33 @@ jobs:
418424
- name: dist-x86_64-msvc
419425
env:
420426
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"
421-
SCRIPT: PGO_HOST=x86_64-pc-windows-msvc src/ci/pgo.sh python x.py dist
427+
SCRIPT: PGO_HOST=x86_64-pc-windows-msvc src/ci/pgo.sh python x.py dist bootstrap --include-default-paths
422428
DIST_REQUIRE_ALL_TOOLS: 1
423429
os: windows-latest-xl
424430
- name: dist-i686-msvc
425431
env:
426432
RUST_CONFIGURE_ARGS: "--build=i686-pc-windows-msvc --host=i686-pc-windows-msvc --target=i686-pc-windows-msvc,i586-pc-windows-msvc --enable-full-tools --enable-profiler"
427-
SCRIPT: python x.py dist
433+
SCRIPT: python x.py dist bootstrap --include-default-paths
428434
DIST_REQUIRE_ALL_TOOLS: 1
429435
os: windows-latest-xl
430436
- name: dist-aarch64-msvc
431437
env:
432438
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --host=aarch64-pc-windows-msvc --enable-full-tools --enable-profiler"
433-
SCRIPT: python x.py dist
439+
SCRIPT: python x.py dist bootstrap --include-default-paths
434440
DIST_REQUIRE_ALL_TOOLS: 1
435441
WINDOWS_SDK_20348_HACK: 1
436442
os: windows-latest-xl
437443
- name: dist-i686-mingw
438444
env:
439445
RUST_CONFIGURE_ARGS: "--build=i686-pc-windows-gnu --enable-full-tools --enable-profiler --set llvm.allow-old-toolchain"
440446
NO_DOWNLOAD_CI_LLVM: 1
441-
SCRIPT: python x.py dist
447+
SCRIPT: python x.py dist bootstrap --include-default-paths
442448
CUSTOM_MINGW: 1
443449
DIST_REQUIRE_ALL_TOOLS: 1
444450
os: windows-latest-xl
445451
- name: dist-x86_64-mingw
446452
env:
447-
SCRIPT: python x.py dist
453+
SCRIPT: python x.py dist bootstrap --include-default-paths
448454
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-gnu --enable-full-tools --enable-profiler --set llvm.allow-old-toolchain"
449455
NO_DOWNLOAD_CI_LLVM: 1
450456
CUSTOM_MINGW: 1
@@ -453,7 +459,7 @@ jobs:
453459
- name: dist-x86_64-msvc-alt
454460
env:
455461
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --enable-extended --enable-profiler"
456-
SCRIPT: python x.py dist
462+
SCRIPT: python x.py dist bootstrap --include-default-paths
457463
os: windows-latest-xl
458464
timeout-minutes: 600
459465
runs-on: "${{ matrix.os }}"
@@ -547,6 +553,8 @@ jobs:
547553
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
548554
if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
549555
try:
556+
permissions:
557+
actions: write
550558
name: try
551559
env:
552560
CI_JOB_NAME: "${{ matrix.name }}"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ no_llvm_build
4646
/dist/
4747
/unicode-downloads
4848
/target
49+
/src/bootstrap/target
4950
/src/tools/x/target
5051
# Created by default with `src/ci/docker/run.sh`
5152
/obj/

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
[submodule "src/doc/book"]
1414
path = src/doc/book
1515
url = https://github.com/rust-lang/book.git
16-
[submodule "src/tools/miri"]
17-
path = src/tools/miri
18-
url = https://github.com/rust-lang/miri.git
1916
[submodule "src/doc/rust-by-example"]
2017
path = src/doc/rust-by-example
2118
url = https://github.com/rust-lang/rust-by-example.git

0 commit comments

Comments
 (0)