Skip to content

Commit 0e20cdb

Browse files
authored
Merge pull request #3 from runtimeverification/resync
2 parents 85f90a4 + 298c746 commit 0e20cdb

File tree

17,349 files changed

+500217
-306975
lines changed

Some content is hidden

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

17,349 files changed

+500217
-306975
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BasedOnStyle: LLVM

.git-blame-ignore-revs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,9 @@ b2d2184edea578109a48ec3d8decbee5948e8f35
2323
# test directives migration
2424
6e48b96692d63a79a14563f27fe5185f122434f8
2525
ec2cc761bc7067712ecc7734502f703fe3b024c8
26+
# format use declarations
27+
84ac80f1921afc243d71fd0caaa4f2838c294102
28+
# bless mir-opt tests to add `copy`
29+
99cb0c6bc399fb94a0ddde7e9b38e9c00d523bad
30+
# reformat with rustfmt edition 2024
31+
c682aa162b0d41e21cc6748f4fecfe01efb69d1f

.github/ISSUE_TEMPLATE/blank_issue.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/pull_request_template.md

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

.github/workflows/ci.yml

Lines changed: 33 additions & 10 deletions
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.
@@ -63,7 +65,7 @@ jobs:
6365
defaults:
6466
run:
6567
shell: ${{ contains(matrix.os, 'windows') && 'msys2 {0}' || 'bash' }}
66-
timeout-minutes: 600
68+
timeout-minutes: 240
6769
env:
6870
CI_JOB_NAME: ${{ matrix.image }}
6971
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
@@ -93,8 +95,6 @@ jobs:
9395
path-type: inherit
9496
install: >
9597
make
96-
dos2unix
97-
diffutils
9898
9999
- name: disable git crlf conversion
100100
run: git config --global core.autocrlf false
@@ -104,6 +104,18 @@ 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: contains(matrix.os, 'ubuntu')
114+
with:
115+
# Removing packages with APT saves ~5 GiB, but takes several
116+
# minutes (and potentially removes important packages).
117+
large-packages: false
118+
107119
# Rust Log Analyzer can't currently detect the PR number of a GitHub
108120
# Actions build on its own, so a hint in the log message is needed to
109121
# point it in the right direction.
@@ -122,6 +134,9 @@ jobs:
122134
# which then uses log commands to actually set them.
123135
EXTRA_VARIABLES: ${{ toJson(matrix.env) }}
124136

137+
- name: setup upstream remote
138+
run: src/ci/scripts/setup-upstream-remote.sh
139+
125140
- name: ensure the channel matches the target branch
126141
run: src/ci/scripts/verify-channel.sh
127142

@@ -154,12 +169,6 @@ jobs:
154169

155170
- name: checkout submodules
156171
run: src/ci/scripts/checkout-submodules.sh
157-
158-
- name: Setup Python
159-
uses: actions/setup-python@v5
160-
with:
161-
python-version: '3.x'
162-
if: runner.environment == 'github-hosted'
163172

164173
- name: install MinGW
165174
run: src/ci/scripts/install-mingw.sh
@@ -197,6 +206,11 @@ jobs:
197206
- name: create github artifacts
198207
run: src/ci/scripts/create-doc-artifacts.sh
199208

209+
- name: print disk usage
210+
run: |
211+
echo "disk usage:"
212+
df -h
213+
200214
- name: upload artifacts to github
201215
uses: actions/upload-artifact@v4
202216
with:
@@ -218,6 +232,16 @@ jobs:
218232
# erroring about invalid credentials instead.
219233
if: github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1'
220234

235+
- name: upload job metrics to DataDog
236+
if: needs.calculate_matrix.outputs.run_type != 'pr'
237+
env:
238+
DATADOG_SITE: datadoghq.com
239+
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
240+
DD_GITHUB_JOB_NAME: ${{ matrix.name }}
241+
run: |
242+
npm install -g @datadog/datadog-ci@^2.x.x
243+
python3 src/ci/scripts/upload-build-metrics.py build/cpu-usage.csv
244+
221245
# This job isused to tell bors the final status of the build, as there is no practical way to detect
222246
# when a workflow is successful listening to webhooks only in our current bors implementation (homu).
223247
outcome:
@@ -242,6 +266,5 @@ jobs:
242266
shell: bash
243267
if: needs.calculate_matrix.outputs.run_type == 'auto'
244268
env:
245-
TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
246269
TOOLSTATE_ISSUES_API_URL: https://api.github.com/repos/rust-lang/rust/issues
247270
TOOLSTATE_PUBLISH: 1

.github/workflows/dependencies.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,27 @@ 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
69+
- name: cargo update library
70+
run: |
71+
echo -e "\nlibrary dependencies:" >> cargo_update.log
72+
cargo update --manifest-path library/Cargo.toml 2>&1 | sed '/crates.io index/d' | tee -a cargo_update.log
73+
- name: cargo update rustbook
74+
run: |
75+
echo -e "\nrustbook dependencies:" >> cargo_update.log
76+
cargo update --manifest-path src/tools/rustbook/Cargo.toml 2>&1 | sed '/crates.io index/d' | tee -a cargo_update.log
6777
- name: upload Cargo.lock artifact for use in PR
6878
uses: actions/upload-artifact@v4
6979
with:
7080
name: Cargo-lock
71-
path: Cargo.lock
81+
path: |
82+
Cargo.lock
83+
library/Cargo.lock
84+
src/tools/rustbook/Cargo.lock
7285
retention-days: 1
7386
- name: upload cargo-update log artifact for use in PR
7487
uses: actions/upload-artifact@v4
@@ -113,7 +126,7 @@ jobs:
113126
git config user.name github-actions
114127
git config user.email [email protected]
115128
git switch --force-create cargo_update
116-
git add ./Cargo.lock
129+
git add ./Cargo.lock ./library/Cargo.lock ./src/tools/rustbook/Cargo.lock
117130
git commit --no-verify --file=commit.txt
118131
119132
- name: push

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ Session.vim
1919
*.iml
2020
.vscode
2121
.project
22+
.vim/
23+
.helix/
24+
.zed/
2225
.favorites.json
2326
.settings/
2427
.vs/
28+
.dir-locals.el
2529

2630
## Tool
2731
.valgrindrc
@@ -48,10 +52,16 @@ build/
4852
/dist/
4953
/unicode-downloads
5054
/target
55+
/library/target
5156
/src/bootstrap/target
5257
/src/tools/x/target
5358
# Created by default with `src/ci/docker/run.sh`
5459
/obj/
60+
# Created by nix dev shell / .envrc
61+
src/tools/nix-dev-shell/flake.lock
62+
63+
## ICE reports
64+
rustc-ice-*.txt
5565

5666
## Temporary files
5767
*~
@@ -78,4 +88,13 @@ package.json
7888
## Rustdoc GUI tests
7989
tests/rustdoc-gui/src/**.lock
8090

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

.gitmodules

Lines changed: 9 additions & 1 deletion
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.1-2024-05-19
36+
branch = rustc/19.1-2024-09-17
3737
shallow = true
3838
[submodule "src/doc/embedded-book"]
3939
path = src/doc/embedded-book
@@ -47,3 +47,11 @@
4747
path = src/tools/rustc-perf
4848
url = https://github.com/rust-lang/rustc-perf.git
4949
shallow = true
50+
[submodule "src/tools/enzyme"]
51+
path = src/tools/enzyme
52+
url = https://github.com/EnzymeAD/Enzyme.git
53+
shallow = true
54+
[submodule "src/gcc"]
55+
path = src/gcc
56+
url = https://github.com/rust-lang/gcc.git
57+
shallow = true

.ignore

Lines changed: 2 additions & 0 deletions
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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,15 @@ Ben Striegel <[email protected]>
7474
Benjamin Jackman <[email protected]>
7575
Benoît Cortier <[email protected]>
7676
Bheesham Persaud <[email protected]> Bheesham Persaud <[email protected]>
77+
7778
7879
blake2-ppc <[email protected]> <blake2-ppc>
7980
blyxyas <[email protected]> Alejandra González <[email protected]>
8081
boolean_coercion <[email protected]>
8182
8283
bors <[email protected]> bors[bot] <26634292+bors[bot]@users.noreply.github.com>
8384
bors <[email protected]> bors[bot] <bors[bot]@users.noreply.github.com>
85+
8486
Braden Nelson <[email protected]>
8587
Brandon Sanderson <[email protected]> Brandon Sanderson <[email protected]>
8688
Brett Cannon <[email protected]> Brett Cannon <[email protected]>
@@ -146,6 +148,7 @@ David Klein <[email protected]>
146148
147149
David Ross <[email protected]>
148150
151+
149152
150153
151154
dependabot[bot] <dependabot[bot]@users.noreply.github.com> <27856297+dependabot-preview[bot]@users.noreply.github.com>
@@ -253,6 +256,7 @@ Jakub Adam Wieczorek <[email protected]>
253256
Jakub Adam Wieczorek <[email protected]> <[email protected]>
254257
Jakub Adam Wieczorek <[email protected]> <[email protected]>
255258
Jakub Adam Wieczorek <[email protected]> <[email protected]>
259+
256260
James [Undefined] <[email protected]>
257261
258262
@@ -277,6 +281,7 @@ Jerry Hardee <[email protected]>
277281
Jesús Rubio <[email protected]>
278282
Jethro Beekman <[email protected]>
279283
Jian Zeng <[email protected]>
284+
280285
281286
282287
Jihyun Yu <[email protected]> Jihyun Yu <[email protected]>
@@ -309,6 +314,7 @@ Josh Driver <[email protected]>
309314
Josh Holmer <[email protected]>
310315
311316
317+
312318
Julian Knodt <[email protected]>
313319
314320
Junyoung Cho <[email protected]>
@@ -379,6 +385,7 @@ Markus Westerlind <[email protected]> Markus <[email protected]>
379385
Martin Carton <[email protected]>
380386
Martin Habovštiak <[email protected]>
381387
Martin Hafskjold Thoresen <[email protected]>
388+
382389
Matej Lach <[email protected]> Matej Ľach <[email protected]>
383390
Mateusz Mikuła <[email protected]>
384391
@@ -434,7 +441,7 @@ Nick Platt <[email protected]>
434441
Niclas Schwarzlose <[email protected]>
435442
Nicolas Abram <[email protected]>
436443
Nicole Mazzuca <[email protected]>
437-
Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> nils <[email protected]>
444+
Noratrieb <48135649+Noratrieb@users.noreply.github.com> <[email protected]>
438445
439446
440447

0 commit comments

Comments
 (0)