Skip to content

Commit a79b6c2

Browse files
Merge branch 'rust-lang:master' into fix-questionmark-linking
2 parents 5298f62 + 8cdc67e commit a79b6c2

File tree

11,612 files changed

+330050
-193003
lines changed

Some content is hidden

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

11,612 files changed

+330050
-193003
lines changed

.github/ISSUE_TEMPLATE/blank_issue.md

-4
This file was deleted.

.github/ISSUE_TEMPLATE/tracking_issue.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ for larger features an implementation could be broken up into multiple PRs.
4646

4747
[stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
4848
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs
49-
[nightly-style-procedure]: https://github.com/rust-lang/style-team/blob/master/nightly-style-procedure.md
49+
[nightly-style-procedure]: https://github.com/rust-lang/style-team/blob/main/nightly-style-procedure.md
5050
[Style Guide]: https://github.com/rust-lang/rust/tree/master/src/doc/style-guide
5151

5252
### Unresolved Questions

.github/pull_request_template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ tracking issue or there are none, feel free to ignore this.
77
This PR will get automatically assigned to a reviewer. In case you would like
88
a specific user to review your work, you can assign it to them by using
99
10-
r? <reviewer name>
10+
r\? <reviewer name> (with the `\` removed)
1111
-->
1212
<!-- homu-ignore:end -->

.github/renovate.json5

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
// Let Renovatebot keep an opened issue that tracks our dependencies
4+
"dependencyDashboard": true,
5+
// Disable "normal" package updates
6+
"enabledManagers": [],
7+
// Update lockfiles once per week
8+
"lockFileMaintenance": {
9+
"enabled": true,
10+
"schedule": [
11+
"before 5am on Tuesday"
12+
]
13+
}
14+
}

.github/workflows/ci.yml

+30-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
# If you want to modify CI jobs, take a look at src/ci/github-actions/jobs.yml.
4747
calculate_matrix:
4848
name: Calculate job matrix
49-
runs-on: ubuntu-latest
49+
runs-on: ubuntu-24.04
5050
outputs:
5151
jobs: ${{ steps.jobs.outputs.jobs }}
5252
run_type: ${{ steps.jobs.outputs.run_type }}
@@ -65,7 +65,7 @@ jobs:
6565
defaults:
6666
run:
6767
shell: ${{ contains(matrix.os, 'windows') && 'msys2 {0}' || 'bash' }}
68-
timeout-minutes: 240
68+
timeout-minutes: 360
6969
env:
7070
CI_JOB_NAME: ${{ matrix.image }}
7171
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
@@ -104,6 +104,14 @@ jobs:
104104
with:
105105
fetch-depth: 2
106106

107+
# Free up disk space on Linux by removing preinstalled components that
108+
# we do not need. We do this to enable some of the less resource
109+
# intensive jobs to run on free runners, which however also have
110+
# less disk space.
111+
- name: free up disk space
112+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
113+
if: matrix.free_disk
114+
107115
# Rust Log Analyzer can't currently detect the PR number of a GitHub
108116
# Actions build on its own, so a hint in the log message is needed to
109117
# point it in the right direction.
@@ -122,6 +130,9 @@ jobs:
122130
# which then uses log commands to actually set them.
123131
EXTRA_VARIABLES: ${{ toJson(matrix.env) }}
124132

133+
- name: setup upstream remote
134+
run: src/ci/scripts/setup-upstream-remote.sh
135+
125136
- name: ensure the channel matches the target branch
126137
run: src/ci/scripts/verify-channel.sh
127138

@@ -191,6 +202,11 @@ jobs:
191202
- name: create github artifacts
192203
run: src/ci/scripts/create-doc-artifacts.sh
193204

205+
- name: print disk usage
206+
run: |
207+
echo "disk usage:"
208+
df -h
209+
194210
- name: upload artifacts to github
195211
uses: actions/upload-artifact@v4
196212
with:
@@ -212,11 +228,22 @@ jobs:
212228
# erroring about invalid credentials instead.
213229
if: github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1'
214230

231+
- name: upload job metrics to DataDog
232+
if: needs.calculate_matrix.outputs.run_type != 'pr'
233+
env:
234+
DATADOG_SITE: datadoghq.com
235+
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
236+
DD_GITHUB_JOB_NAME: ${{ matrix.name }}
237+
run: |
238+
cd src/ci
239+
npm ci
240+
python3 scripts/upload-build-metrics.py ../../build/cpu-usage.csv
241+
215242
# This job isused to tell bors the final status of the build, as there is no practical way to detect
216243
# when a workflow is successful listening to webhooks only in our current bors implementation (homu).
217244
outcome:
218245
name: bors build finished
219-
runs-on: ubuntu-latest
246+
runs-on: ubuntu-24.04
220247
needs: [ calculate_matrix, job ]
221248
# !cancelled() executes the job regardless of whether the previous jobs passed or failed
222249
if: ${{ !cancelled() && contains(fromJSON('["auto", "try"]'), needs.calculate_matrix.outputs.run_type) }}

.github/workflows/dependencies.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
not-waiting-on-bors:
2828
if: github.repository_owner == 'rust-lang'
2929
name: skip if S-waiting-on-bors
30-
runs-on: ubuntu-latest
30+
runs-on: ubuntu-24.04
3131
steps:
3232
- env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -47,7 +47,7 @@ jobs:
4747
if: github.repository_owner == 'rust-lang'
4848
name: update dependencies
4949
needs: not-waiting-on-bors
50-
runs-on: ubuntu-latest
50+
runs-on: ubuntu-24.04
5151
steps:
5252
- name: checkout the source code
5353
uses: actions/checkout@v4
@@ -61,9 +61,11 @@ jobs:
6161
rustup toolchain install --no-self-update --profile minimal $TOOLCHAIN
6262
rustup default $TOOLCHAIN
6363
64-
- name: cargo update
64+
- name: cargo update compiler & tools
6565
# Remove first line that always just says "Updating crates.io index"
66-
run: cargo update 2>&1 | sed '/crates.io index/d' | tee -a cargo_update.log
66+
run: |
67+
echo -e "\ncompiler & tools dependencies:" >> cargo_update.log
68+
cargo update 2>&1 | sed '/crates.io index/d' | tee -a cargo_update.log
6769
- name: cargo update library
6870
run: |
6971
echo -e "\nlibrary dependencies:" >> cargo_update.log
@@ -92,7 +94,7 @@ jobs:
9294
if: github.repository_owner == 'rust-lang'
9395
name: amend PR
9496
needs: update
95-
runs-on: ubuntu-latest
97+
runs-on: ubuntu-24.04
9698
permissions:
9799
contents: write
98100
pull-requests: write

.gitignore

+13-2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Session.vim
2525
.favorites.json
2626
.settings/
2727
.vs/
28+
.dir-locals.el
2829

2930
## Tool
3031
.valgrindrc
@@ -45,8 +46,7 @@ no_llvm_build
4546
/inst/
4647
/llvm/
4748
/mingw-build/
48-
build/
49-
!/compiler/rustc_mir_build/src/build/
49+
/build
5050
/build-rust-analyzer/
5151
/dist/
5252
/unicode-downloads
@@ -56,6 +56,8 @@ build/
5656
/src/tools/x/target
5757
# Created by default with `src/ci/docker/run.sh`
5858
/obj/
59+
# Created by nix dev shell / .envrc
60+
src/tools/nix-dev-shell/flake.lock
5961

6062
## ICE reports
6163
rustc-ice-*.txt
@@ -85,4 +87,13 @@ package.json
8587
## Rustdoc GUI tests
8688
tests/rustdoc-gui/src/**.lock
8789

90+
## direnv
91+
/.envrc
92+
/.direnv/
93+
94+
## nix
95+
/flake.nix
96+
flake.lock
97+
/default.nix
98+
8899
# Before adding new lines, see the comment at the top.

.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/19.1-2024-09-17
36+
branch = rustc/19.1-2024-12-03
3737
shallow = true
3838
[submodule "src/doc/embedded-book"]
3939
path = src/doc/embedded-book

.mailmap

+25-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Alexis Beingessner <[email protected]>
3131
Alfie John <[email protected]> Alfie John <[email protected]>
3232
Alona Enraght-Moony <[email protected]> <[email protected]>
3333
Alona Enraght-Moony <[email protected]> <[email protected]>
34+
Alona Enraght-Moony <[email protected]> <[email protected]>
3435
3536
3637
@@ -74,6 +75,8 @@ Ben Striegel <[email protected]>
7475
Benjamin Jackman <[email protected]>
7576
Benoît Cortier <[email protected]>
7677
Bheesham Persaud <[email protected]> Bheesham Persaud <[email protected]>
78+
79+
7780
7881
blake2-ppc <[email protected]> <blake2-ppc>
7982
blyxyas <[email protected]> Alejandra González <[email protected]>
@@ -171,6 +174,7 @@ Dzmitry Malyshau <[email protected]>
171174
172175
Ed Barnard <[email protected]>
173176
Eduard-Mihai Burtescu <[email protected]>
177+
Eduard-Mihai Burtescu <[email protected]> <[email protected]>
174178
Eduardo Bautista <[email protected]> <=>
175179
176180
Eduardo Broto <[email protected]>
@@ -185,6 +189,7 @@ Erick Tryzelaar <[email protected]> <[email protected]>
185189
Erik Desjardins <[email protected]>
186190
Erik Jensen <[email protected]>
187191
Erin Power <[email protected]>
192+
188193
189194
190195
Esteban Küber <[email protected]>
@@ -197,6 +202,7 @@ F001 <[email protected]>
197202
Fabian Kössel <[email protected]>
198203
Falco Hirschenberger <[email protected]> <[email protected]>
199204
Felix S. Klock II <[email protected]> Felix S Klock II <[email protected]>
205+
200206
Félix Saparelli <[email protected]>
201207
Flaper Fesp <[email protected]>
202208
Florian Berger <[email protected]>
@@ -244,17 +250,19 @@ Irina Popa <[email protected]>
244250
Ivan Ivaschenko <[email protected]>
245251
ivan tkachenko <[email protected]>
246252
J. J. Weber <[email protected]>
247-
Jack Huey <[email protected]>
253+
248254
249255
Jacob Greenfield <[email protected]>
250256
257+
251258
Jake Vossen <[email protected]>
252259
253260
Jakob Lautrup Nysom <[email protected]>
254261
Jakub Adam Wieczorek <[email protected]>
255262
Jakub Adam Wieczorek <[email protected]> <[email protected]>
256263
Jakub Adam Wieczorek <[email protected]> <[email protected]>
257264
Jakub Adam Wieczorek <[email protected]> <[email protected]>
265+
258266
James [Undefined] <[email protected]>
259267
260268
@@ -279,6 +287,7 @@ Jerry Hardee <[email protected]>
279287
Jesús Rubio <[email protected]>
280288
Jethro Beekman <[email protected]>
281289
Jian Zeng <[email protected]>
290+
282291
283292
284293
Jihyun Yu <[email protected]> Jihyun Yu <[email protected]>
@@ -289,6 +298,7 @@ John Clements <[email protected]> <[email protected]>
289298
John Hodge <[email protected]> John Hodge <[email protected]>
290299
John Hörnvall <[email protected]>
291300
John Kåre Alsaker <[email protected]>
301+
John Kåre Alsaker <[email protected]> <[email protected]>
292302
John Talling <[email protected]>
293303
John Van Enk <[email protected]>
294304
Jonas Tepe <[email protected]>
@@ -311,6 +321,7 @@ Josh Driver <[email protected]>
311321
Josh Holmer <[email protected]>
312322
313323
324+
314325
Julian Knodt <[email protected]>
315326
316327
Junyoung Cho <[email protected]>
@@ -364,6 +375,7 @@ Lukas Lueg <[email protected]>
364375
Luke Metz <[email protected]>
365376
366377
378+
367379
368380
Maik Klein <[email protected]>
369381
Malo Jaffré <[email protected]>
@@ -405,6 +417,7 @@ mental <[email protected]>
405417
406418
Michael Williams <[email protected]>
407419
Michael Woerister <michaelwoerister@posteo> <michaelwoerister@gmail>
420+
Michael Woerister <michaelwoerister@posteo> <[email protected]>
408421
Michael Woerister <michaelwoerister@posteo> <[email protected]>
409422
Michael Woerister <michaelwoerister@posteo> <[email protected]>
410423
Michael Zhang <[email protected]>
@@ -418,6 +431,7 @@ Ms2ger <[email protected]> <[email protected]>
418431
msizanoen1 <[email protected]>
419432
Mukilan Thiagarajan <[email protected]>
420433
Nadrieril Feneanar <[email protected]>
434+
Nadrieril Feneanar <[email protected]> <[email protected]>
421435
422436
423437
Nathan Ringo <[email protected]>
@@ -438,6 +452,8 @@ Niclas Schwarzlose <[email protected]>
438452
Nicolas Abram <[email protected]>
439453
Nicole Mazzuca <[email protected]>
440454
455+
456+
441457
442458
443459
@@ -456,6 +472,7 @@ Oliver Scherer <[email protected]> <[email protected]>
456472
457473
458474
475+
459476
Oliver Scherer <[email protected]>
460477
461478
Onur Özkan <[email protected]>
@@ -492,6 +509,7 @@ Raphaël Huchet <[email protected]>
492509
rChaser53 <[email protected]>
493510
Rémy Rakic <[email protected]>
494511
512+
495513
Renato Riccieri Santos Zannon <[email protected]>
496514
497515
Ricky Hosfelt <[email protected]>
@@ -521,6 +539,7 @@ Samuel Tardieu <[email protected]>
521539
Santiago Pastorino <[email protected]>
522540
Santiago Pastorino <[email protected]> <[email protected]>
523541
Scott McMurray <[email protected]>
542+
524543
Scott Olson <[email protected]> Scott Olson <[email protected]>
525544
Sean Gillespie <[email protected]> swgillespie <[email protected]>
526545
Seiichi Uchida <[email protected]>
@@ -532,6 +551,7 @@ Shyam Sundar B <[email protected]>
532551
Simon Barber-Dueck <[email protected]> Simon BD <simon@server>
533552
534553
Simonas Kazlauskas <[email protected]> Simonas Kazlauskas <[email protected]>
554+
Simonas Kazlauskas <[email protected]> <[email protected]>
535555
Siva Prasad <[email protected]>
536556
537557
Srinivas Reddy Thatiparthy <[email protected]>
@@ -552,6 +572,8 @@ Tatsuyuki Ishi <[email protected]>
552572
553573
Tero Hänninen <[email protected]> Tero Hänninen <[email protected]>
554574
575+
576+
555577
Theo Belaire <[email protected]> Theo Belaire <[email protected]>
556578
Theodore Luo Wang <[email protected]>
557579
Thiago Pontes <[email protected]> thiagopnts <[email protected]>
@@ -589,7 +611,8 @@ Waffle Lapkin <[email protected]>
589611
590612
whitequark <[email protected]>
591613
592-
Wim Looman <[email protected]>
614+
615+
593616
Without Boats <[email protected]>
594617
595618
Xinye Tao <[email protected]>

0 commit comments

Comments
 (0)