Skip to content

Commit 9e1740f

Browse files
committed
Merge branch 'main' into upstream-monomorphizations-lean-and-mean
2 parents c6d54c7 + 625b63f commit 9e1740f

8,486 files changed

Lines changed: 197256 additions & 111399 deletions

File tree

Some content is hidden

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

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: ["rust-lang.org/funding"]

.github/ISSUE_TEMPLATE/ice.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name: Internal Compiler Error
33
about: Create a report for an internal compiler error in rustc.
44
labels: C-bug, I-ICE, T-compiler
5+
title: "[ICE]: "
56
---
67
<!--
78
Thank you for finding an Internal Compiler Error! 🧊 If possible, try to provide

.github/workflows/ci.yml

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ name: CI
1111
on:
1212
push:
1313
branches:
14-
- auto
15-
- try
16-
- try-perf
14+
- automation/bors/auto
1715
- automation/bors/try
16+
- try-perf
1817
pull_request:
1918
branches:
2019
- "**"
@@ -32,9 +31,10 @@ defaults:
3231

3332
concurrency:
3433
# For a given workflow, if we push to the same branch, cancel all previous builds on that branch.
35-
# We add an exception for try builds (try branch) and unrolled rollup builds (try-perf), which
36-
# are all triggered on the same branch, but which should be able to run concurrently.
37-
group: ${{ github.workflow }}-${{ ((github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf' || github.ref == 'refs/heads/automation/bors/try') && github.sha) || github.ref }}
34+
# We add an exception for try builds (automation/bors/try branch) and unrolled rollup builds
35+
# (try-perf), which are all triggered on the same branch, but which should be able to run
36+
# concurrently.
37+
group: ${{ github.workflow }}-${{ ((github.ref == 'refs/heads/try-perf' || github.ref == 'refs/heads/automation/bors/try') && github.sha) || github.ref }}
3838
cancel-in-progress: true
3939
env:
4040
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
@@ -56,7 +56,7 @@ jobs:
5656
- name: Test citool
5757
# Only test citool on the auto branch, to reduce latency of the calculate matrix job
5858
# on PR/try builds.
59-
if: ${{ github.ref == 'refs/heads/auto' }}
59+
if: ${{ github.ref == 'refs/heads/automation/bors/auto' }}
6060
run: |
6161
cd src/ci/citool
6262
CARGO_INCREMENTAL=0 cargo test
@@ -79,7 +79,7 @@ jobs:
7979
# access the environment.
8080
#
8181
# We only enable the environment for the rust-lang/rust repository, so that CI works on forks.
82-
environment: ${{ ((github.repository == 'rust-lang/rust' && (github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf' || github.ref == 'refs/heads/automation/bors/try' || github.ref == 'refs/heads/auto')) && 'bors') || '' }}
82+
environment: ${{ ((github.repository == 'rust-lang/rust' && (github.ref == 'refs/heads/try-perf' || github.ref == 'refs/heads/automation/bors/try' || github.ref == 'refs/heads/automation/bors/auto')) && 'bors') || '' }}
8383
env:
8484
CI_JOB_NAME: ${{ matrix.name }}
8585
CI_JOB_DOC_URL: ${{ matrix.doc_url }}
@@ -288,7 +288,7 @@ jobs:
288288
fi
289289
290290
# Get closest bors merge commit
291-
PARENT_COMMIT=`git rev-list --author='bors <bors@rust-lang.org>' -n1 --first-parent HEAD^1`
291+
PARENT_COMMIT=`git rev-list --author='bors@rust-lang.org' --author='122020455+rust-bors\[bot\]@users.noreply.github.com' -n1 --first-parent HEAD^1`
292292
293293
./build/citool/debug/citool postprocess-metrics \
294294
--job-name ${CI_JOB_NAME} \
@@ -305,29 +305,22 @@ jobs:
305305
DD_GITHUB_JOB_NAME: ${{ matrix.full_name }}
306306
run: ./build/citool/debug/citool upload-build-metrics build/cpu-usage.csv
307307

308-
# This job isused to tell bors the final status of the build, as there is no practical way to detect
309-
# when a workflow is successful listening to webhooks only in our current bors implementation (homu).
308+
# This job is used to publish toolstate for successful auto builds.
310309
outcome:
311-
name: bors build finished
310+
name: publish toolstate
312311
runs-on: ubuntu-24.04
313312
needs: [ calculate_matrix, job ]
314-
# !cancelled() executes the job regardless of whether the previous jobs passed or failed
315-
if: ${{ !cancelled() && contains(fromJSON('["auto", "try"]'), needs.calculate_matrix.outputs.run_type) }}
313+
if: ${{ needs.calculate_matrix.outputs.run_type == 'auto' }}
314+
environment: ${{ (github.repository == 'rust-lang/rust' && 'bors') || '' }}
316315
steps:
317316
- name: checkout the source code
318317
uses: actions/checkout@v5
319318
with:
320319
fetch-depth: 2
321-
# Calculate the exit status of the whole CI workflow.
322-
# If all dependent jobs were successful, this exits with 0 (and the outcome job continues successfully).
323-
# If a some dependent job has failed, this exits with 1.
324-
- name: calculate the correct exit status
325-
run: jq --exit-status 'all(.result == "success" or .result == "skipped")' <<< '${{ toJson(needs) }}'
326320
# Publish the toolstate if an auto build succeeds (just before push to the default branch)
327321
- name: publish toolstate
328322
run: src/ci/publish_toolstate.sh
329323
shell: bash
330-
if: needs.calculate_matrix.outputs.run_type == 'auto'
331324
env:
332325
TOOLSTATE_ISSUES_API_URL: https://api.github.com/repos/rust-lang/rust/issues
333326
TOOLSTATE_PUBLISH: 1

.github/workflows/dependencies.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,9 @@ jobs:
6262
rustup toolchain install --no-self-update --profile minimal $TOOLCHAIN
6363
rustup default $TOOLCHAIN
6464
65-
- name: cargo update compiler & tools
66-
# Remove first line that always just says "Updating crates.io index"
67-
run: |
68-
echo -e "\ncompiler & tools dependencies:" >> cargo_update.log
69-
cargo update 2>&1 | sed '/crates.io index/d' | tee -a cargo_update.log
70-
- name: cargo update library
71-
run: |
72-
echo -e "\nlibrary dependencies:" >> cargo_update.log
73-
cargo update --manifest-path library/Cargo.toml 2>&1 | sed '/crates.io index/d' | tee -a cargo_update.log
74-
- name: cargo update rustbook
75-
run: |
76-
echo -e "\nrustbook dependencies:" >> cargo_update.log
77-
cargo update --manifest-path src/tools/rustbook/Cargo.toml 2>&1 | sed '/crates.io index/d' | tee -a cargo_update.log
65+
- name: cargo update
66+
run: ./src/tools/update-lockfile.sh
67+
7868
- name: upload Cargo.lock artifact for use in PR
7969
uses: actions/upload-artifact@v4
8070
with:

.github/workflows/ghcr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
images=(
5656
# Mirrored because used by the tidy job, which doesn't cache Docker images
5757
"ubuntu:22.04"
58+
# Mirrored because used by x86-64-gnu-miri
59+
"ubuntu:24.04"
5860
# Mirrored because used by all linux CI jobs, including tidy
5961
"moby/buildkit:buildx-stable-1"
6062
# Mirrored because used when CI is running inside a Docker container

.github/workflows/post-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
sleep 60
3030
3131
# Get closest bors merge commit
32-
PARENT_COMMIT=`git rev-list --author='bors <bors@rust-lang.org>' -n1 --first-parent HEAD^1`
32+
PARENT_COMMIT=`git rev-list --author='bors@rust-lang.org' --author='122020455+rust-bors\[bot\]@users.noreply.github.com' -n1 --first-parent HEAD^1`
3333
echo "Parent: ${PARENT_COMMIT}"
3434
3535
# Find PR for the current commit

.mailmap

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Andre Bogus <bogusandre@gmail.com>
4343
Andre Bogus <bogusandre@gmail.com> <andre.bogus@aleph-alpha.de>
4444
Andre Bogus <bogusandre@gmail.com> <andre.bogus@ankordata.de>
4545
Andrea Ciliberti <meziu210@icloud.com>
46+
4647
Andreas Gal <gal@mozilla.com> <andreas.gal@gmail.com>
4748
Andreas Jonson <andjo403@users.noreply.github.com>
4849
Andrew Gauger <andygauge@gmail.com>
@@ -82,16 +83,20 @@ Ben Sago <ogham@users.noreply.github.com> <ogham@bsago.me>
8283
Ben Striegel <ben.striegel@gmail.com>
8384
Benjamin Jackman <ben@jackman.biz>
8485
Benoît Cortier <benoit.cortier@fried-world.eu>
86+
binarycat <binarycat@envs.net> lolbinarycat <dogedoge61+github@gmail.com> <dogedoge61@gmail.com>
8587
Bheesham Persaud <bheesham123@hotmail.com> Bheesham Persaud <bheesham.persaud@live.ca>
8688
bjorn3 <17426603+bjorn3@users.noreply.github.com> <bjorn3@users.noreply.github.com>
8789
bjorn3 <17426603+bjorn3@users.noreply.github.com> <bjorn3_gh@protonmail.com>
8890
Björn Steinbrink <bsteinbr@gmail.com> <B.Steinbrink@gmx.de>
8991
blake2-ppc <ulrik.sverdrup@gmail.com> <blake2-ppc>
90-
blyxyas <blyxyas@gmail.com> Alejandra González <blyxyas@gmail.com>
92+
Alejandra González <blyxyas@goose.love> blyxyas <blyxyas@gmail.com>
93+
Alejandra González <blyxyas@goose.love> blyxyas <blyxyas@goose.love>
94+
Alejandra González <blyxyas@goose.love> Alejandra González <blyxyas@gmail.com>
9195
boolean_coercion <booleancoercion@gmail.com>
9296
Boris Egorov <jightuse@gmail.com> <egorov@linux.com>
9397
bors <bors@rust-lang.org> bors[bot] <26634292+bors[bot]@users.noreply.github.com>
9498
bors <bors@rust-lang.org> bors[bot] <bors[bot]@users.noreply.github.com>
99+
bors <bors@rust-lang.org> <122020455+rust-bors[bot]@users.noreply.github.com>
95100
BoxyUwU <rust@boxyuwu.dev>
96101
BoxyUwU <rust@boxyuwu.dev> <supbscripter@gmail.com>
97102
Braden Nelson <moonheart08@users.noreply.github.com>
@@ -427,6 +432,7 @@ Lzu Tao <taolzu@gmail.com>
427432
Maik Klein <maikklein@googlemail.com>
428433
Maja Kądziołka <maya@compilercrim.es> <github@compilercrim.es>
429434
Maja Kądziołka <maya@compilercrim.es> <kuba@kadziolka.net>
435+
Makai <m4kai410@gmail.com>
430436
Malo Jaffré <jaffre.malo@gmail.com>
431437
Manish Goregaokar <manishsmail@gmail.com>
432438
Mara Bos <m-ou.se@m-ou.se>

0 commit comments

Comments
 (0)