Skip to content

Commit 0d2e81c

Browse files
authored
Merge branch 'main' into cstyle-export-rules2
2 parents 75c825c + 3d087e6 commit 0d2e81c

18,205 files changed

Lines changed: 565177 additions & 293315 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.

.editorconfig

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,25 @@ root = true
77
[*]
88
end_of_line = lf
99
charset = utf-8
10-
trim_trailing_whitespace = true
1110
insert_final_newline = true
12-
13-
[!src/llvm-project]
11+
trim_trailing_whitespace = true
1412
indent_style = space
1513
indent_size = 4
1614

15+
# some tests need trailing whitespace in output snapshots
16+
[tests/**]
17+
trim_trailing_whitespace = false
18+
# for actual source code files of test, we still don't want trailing whitespace
19+
[tests/**.{rs,js}]
20+
trim_trailing_whitespace = true
21+
# these specific source files need to have trailing whitespace.
22+
[tests/ui/{frontmatter/frontmatter-whitespace-3.rs,parser/shebang/shebang-space.rs}]
23+
trim_trailing_whitespace = false
24+
25+
[src/llvm-project]
26+
indent_style = unset
27+
indent_size = unset
28+
1729
[*.rs]
1830
max_line_length = 100
1931

.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/documentation.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Documentation problem
2-
description: Create a report for a documentation problem.
2+
description: Report an issue with documentation content.
33
labels: ["A-docs"]
44
body:
55
- type: markdown
@@ -19,20 +19,20 @@ body:
1919
- [The Rustonomicon](https://github.com/rust-lang/nomicon/issues)
2020
- [The Embedded Book](https://github.com/rust-embedded/book/issues)
2121
22-
All other documentation issues should be filed here.
22+
Or, if you find an issue related to rustdoc (e.g. doctest, rustdoc UI), please use the rustdoc issue template instead.
2323
24-
Or, if you find an issue related to rustdoc (e.g. doctest, rustdoc UI), please use the bug report or blank issue template instead.
24+
All other documentation issues should be filed here.
2525
2626
- type: textarea
2727
id: location
2828
attributes:
29-
label: Location
29+
label: Location (URL)
3030
validations:
31-
required: true
31+
required: true
3232

3333
- type: textarea
3434
id: summary
3535
attributes:
3636
label: Summary
3737
validations:
38-
required: true
38+
required: true

.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/ISSUE_TEMPLATE/library_tracking_issue.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ If the feature is changed later, please add those PRs here as well.
5151

5252
(Remember to update the `S-tracking-*` label when checking boxes.)
5353

54+
- [ ] ACP: rust-lang/libs-team#...
5455
- [ ] Implementation: #...
5556
- [ ] Final comment period (FCP)[^1]
5657
- [ ] Stabilization PR

.github/ISSUE_TEMPLATE/tracking_issue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ for larger features an implementation could be broken up into multiple PRs.
5050
[stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
5151
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs
5252
[nightly-style-procedure]: https://github.com/rust-lang/style-team/blob/main/nightly-style-procedure.md
53-
[Style Guide]: https://github.com/rust-lang/rust/tree/master/src/doc/style-guide
53+
[Style Guide]: https://github.com/rust-lang/rust/tree/HEAD/src/doc/style-guide
5454

5555
### Unresolved Questions
5656
<!--

.github/workflows/ci.yml

Lines changed: 21 additions & 26 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"
@@ -52,11 +52,11 @@ jobs:
5252
run_type: ${{ steps.jobs.outputs.run_type }}
5353
steps:
5454
- name: Checkout the source code
55-
uses: actions/checkout@v4
55+
uses: actions/checkout@v5
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 }}
@@ -113,16 +113,16 @@ jobs:
113113
run: git config --global core.autocrlf false
114114

115115
- name: checkout the source code
116-
uses: actions/checkout@v4
116+
uses: actions/checkout@v5
117117
with:
118118
fetch-depth: 2
119119

120-
# Free up disk space on Linux and Windows by removing preinstalled components that
120+
# Free up disk space on Linux by removing preinstalled components that
121121
# we do not need. We do this to enable some of the less resource
122122
# intensive jobs to run on free runners, which however also have
123123
# less disk space.
124124
- name: free up disk space
125-
run: src/ci/scripts/free-disk-space.sh
125+
run: src/ci/scripts/free-disk-space-linux.sh
126126
if: matrix.free_disk
127127

128128
# If we don't need to free up disk space then just report how much space we have
@@ -246,6 +246,8 @@ jobs:
246246
run: src/ci/scripts/create-doc-artifacts.sh
247247

248248
- name: print disk usage
249+
# We also want to know the disk usage when the job fails.
250+
if: always()
249251
run: |
250252
echo "disk usage:"
251253
df -h
@@ -286,7 +288,7 @@ jobs:
286288
fi
287289
288290
# Get closest bors merge commit
289-
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`
290292
291293
./build/citool/debug/citool postprocess-metrics \
292294
--job-name ${CI_JOB_NAME} \
@@ -303,29 +305,22 @@ jobs:
303305
DD_GITHUB_JOB_NAME: ${{ matrix.full_name }}
304306
run: ./build/citool/debug/citool upload-build-metrics build/cpu-usage.csv
305307

306-
# This job isused to tell bors the final status of the build, as there is no practical way to detect
307-
# 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.
308309
outcome:
309-
name: bors build finished
310+
name: publish toolstate
310311
runs-on: ubuntu-24.04
311312
needs: [ calculate_matrix, job ]
312-
# !cancelled() executes the job regardless of whether the previous jobs passed or failed
313-
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') || '' }}
314315
steps:
315316
- name: checkout the source code
316-
uses: actions/checkout@v4
317+
uses: actions/checkout@v5
317318
with:
318319
fetch-depth: 2
319-
# Calculate the exit status of the whole CI workflow.
320-
# If all dependent jobs were successful, this exits with 0 (and the outcome job continues successfully).
321-
# If a some dependent job has failed, this exits with 1.
322-
- name: calculate the correct exit status
323-
run: jq --exit-status 'all(.result == "success" or .result == "skipped")' <<< '${{ toJson(needs) }}'
324-
# Publish the toolstate if an auto build succeeds (just before push to master)
320+
# Publish the toolstate if an auto build succeeds (just before push to the default branch)
325321
- name: publish toolstate
326322
run: src/ci/publish_toolstate.sh
327323
shell: bash
328-
if: needs.calculate_matrix.outputs.run_type == 'auto'
329324
env:
330325
TOOLSTATE_ISSUES_API_URL: https://api.github.com/repos/rust-lang/rust/issues
331326
TOOLSTATE_PUBLISH: 1

.github/workflows/dependencies.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
runs-on: ubuntu-24.04
5252
steps:
5353
- name: checkout the source code
54-
uses: actions/checkout@v4
54+
uses: actions/checkout@v5
5555
with:
5656
submodules: recursive
5757
- name: install the bootstrap toolchain
@@ -101,7 +101,7 @@ jobs:
101101
pull-requests: write
102102
steps:
103103
- name: checkout the source code
104-
uses: actions/checkout@v4
104+
uses: actions/checkout@v5
105105

106106
- name: download Cargo.lock from update job
107107
uses: actions/download-artifact@v4

.github/workflows/ghcr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
# Needed to write to the ghcr.io registry
3030
packages: write
3131
steps:
32-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@v5
3333
with:
3434
persist-credentials: false
3535

@@ -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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Workflow that runs after a merge to master, analyses changes in test executions
1+
# Workflow that runs after a merge to the default branch, analyses changes in test executions
22
# and posts the result to the merged PR.
33

44
name: Post merge analysis
55

66
on:
77
push:
88
branches:
9-
- master
9+
- main
1010

1111
jobs:
1212
analysis:
@@ -15,7 +15,7 @@ jobs:
1515
permissions:
1616
pull-requests: write
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
1919
with:
2020
# Make sure that we have enough commits to find the parent merge commit.
2121
# Since all merges should be through merge commits, fetching two commits
@@ -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

0 commit comments

Comments
 (0)