Skip to content

Commit 9511918

Browse files
authored
Merge branch 'master' into speed-up-string-push-and-string-insert
2 parents e73efbb + b215beb commit 9511918

File tree

9,029 files changed

+220560
-124444
lines changed

Some content is hidden

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

9,029 files changed

+220560
-124444
lines changed

.clang-format

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BasedOnStyle: LLVM

.github/pull_request_template.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!-- homu-ignore:start -->
2+
<!--
3+
If this PR is related to an unstable feature or an otherwise tracked effort,
4+
please link to the relevant tracking issue here. If you don't know of a related
5+
tracking issue or there are none, feel free to ignore this.
6+
7+
This PR will get automatically assigned to a reviewer. In case you would like
8+
a specific user to review your work, you can assign it to them by using
9+
10+
r​? <reviewer name>
11+
-->
12+
<!-- homu-ignore:end -->

.github/workflows/ci.yml

+6-15
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ concurrency:
3838
cancel-in-progress: true
3939
env:
4040
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
41+
# This will be empty in PR jobs.
42+
TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
4143
jobs:
4244
# The job matrix for `calculate_matrix` is defined in src/ci/github-actions/jobs.yml.
4345
# It calculates which jobs should be executed, based on the data of the ${{ github }} context.
@@ -52,6 +54,8 @@ jobs:
5254
- name: Checkout the source code
5355
uses: actions/checkout@v4
5456
- name: Calculate the CI job matrix
57+
env:
58+
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
5559
run: python3 src/ci/github-actions/calculate-job-matrix.py >> $GITHUB_OUTPUT
5660
id: jobs
5761
job:
@@ -75,14 +79,6 @@ jobs:
7579
matrix:
7680
# Check the `calculate_matrix` job to see how is the matrix defined.
7781
include: ${{ fromJSON(needs.calculate_matrix.outputs.jobs) }}
78-
# GitHub Actions fails the workflow if an empty list of jobs is provided to
79-
# the workflow, so we need to skip this job if nothing was produced by
80-
# the Python script.
81-
#
82-
# Unfortunately checking whether a list is empty is not possible in a nice
83-
# way due to GitHub Actions expressions limits.
84-
# This hack is taken from https://github.com/ferrocene/ferrocene/blob/d43edc6b7697cf1719ec1c17c54904ab94825763/.github/workflows/release.yml#L75-L82
85-
if: fromJSON(needs.calculate_matrix.outputs.jobs)[0] != null
8682
steps:
8783
- if: contains(matrix.os, 'windows')
8884
uses: msys2/[email protected]
@@ -99,8 +95,6 @@ jobs:
9995
path-type: inherit
10096
install: >
10197
make
102-
dos2unix
103-
diffutils
10498
10599
- name: disable git crlf conversion
106100
run: git config --global core.autocrlf false
@@ -161,9 +155,6 @@ jobs:
161155
- name: checkout submodules
162156
run: src/ci/scripts/checkout-submodules.sh
163157

164-
- name: install MSYS2
165-
run: src/ci/scripts/install-msys2.sh
166-
167158
- name: install MinGW
168159
run: src/ci/scripts/install-mingw.sh
169160

@@ -196,7 +187,6 @@ jobs:
196187
env:
197188
AWS_ACCESS_KEY_ID: ${{ env.CACHES_AWS_ACCESS_KEY_ID }}
198189
AWS_SECRET_ACCESS_KEY: ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}
199-
TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
200190

201191
- name: create github artifacts
202192
run: src/ci/scripts/create-doc-artifacts.sh
@@ -246,4 +236,5 @@ jobs:
246236
shell: bash
247237
if: needs.calculate_matrix.outputs.run_type == 'auto'
248238
env:
249-
TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
239+
TOOLSTATE_ISSUES_API_URL: https://api.github.com/repos/rust-lang/rust/issues
240+
TOOLSTATE_PUBLISH: 1

.github/workflows/dependencies.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: install the bootstrap toolchain
5757
run: |
5858
# Extract the stage0 version
59-
TOOLCHAIN=$(jq -r '.compiler | {version,date} | join("-")' -- src/stage0.json)
59+
TOOLCHAIN=$(awk -F= '{a[$1]=$2} END {print(a["compiler_version"] "-" a["compiler_date"])}' src/stage0)
6060
# Install and set as default
6161
rustup toolchain install --no-self-update --profile minimal $TOOLCHAIN
6262
rustup default $TOOLCHAIN

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ build/
5252
/src/tools/x/target
5353
# Created by default with `src/ci/docker/run.sh`
5454
/obj/
55+
/rustc-ice*
5556

5657
## Temporary files
5758
*~

.gitmodules

+5-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/18.0-2024-02-13
36+
branch = rustc/18.1-2024-05-19
3737
shallow = true
3838
[submodule "src/doc/embedded-book"]
3939
path = src/doc/embedded-book
@@ -43,3 +43,7 @@
4343
path = library/backtrace
4444
url = https://github.com/rust-lang/backtrace-rs.git
4545
shallow = true
46+
[submodule "src/tools/rustc-perf"]
47+
path = src/tools/rustc-perf
48+
url = https://github.com/rust-lang/rustc-perf.git
49+
shallow = true

.ignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Make vscode *not* count `config.toml` as ignored, so it is included in search
2+
!/config.toml

.mailmap

+1
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ Markus Westerlind <[email protected]> Markus <[email protected]>
379379
Martin Carton <[email protected]>
380380
Martin Habovštiak <[email protected]>
381381
Martin Hafskjold Thoresen <[email protected]>
382+
382383
Matej Lach <[email protected]> Matej Ľach <[email protected]>
383384
Mateusz Mikuła <[email protected]>
384385

.reuse/dep5

+2
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ Files: compiler/*
2929
x
3030
x.ps1
3131
x.py
32+
.clang-format
3233
.editorconfig
3334
.git-blame-ignore-revs
3435
.gitattributes
3536
.gitignore
3637
.gitmodules
3738
.mailmap
39+
.ignore
3840
Copyright: The Rust Project Developers (see https://thanks.rust-lang.org)
3941
License: MIT or Apache-2.0
4042

0 commit comments

Comments
 (0)