Skip to content

Commit 447cecf

Browse files
committed
Merge remote-tracking branch 'origin/main' into metrics-std
2 parents bc5d2a7 + 18c4e95 commit 447cecf

File tree

495 files changed

+10778
-9340
lines changed

Some content is hidden

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

495 files changed

+10778
-9340
lines changed

.github/pull_requests.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ members = [
99
"remi-delmas-3000",
1010
"qinheping",
1111
"tautschnig",
12-
"jaisnan",
1312
"patricklam",
1413
"ranjitjhala",
1514
"carolynzech",
@@ -18,5 +17,7 @@ members = [
1817
"Eh2406",
1918
"jswrenn",
2019
"havelund",
21-
"jorajeev"
20+
"jorajeev",
21+
"rajath-mk",
22+
"thanhnguyen-aws"
2223
]

.github/workflows/update-subtree.yml

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ defaults:
1111

1212
jobs:
1313
update-subtree-library:
14-
runs-on: ubuntu-latest
14+
# Changing the host platform may alter the libgit2 version as used by
15+
# splitsh-lite, which will require changing the version of git2go.
16+
# See https://github.com/jeffWelling/git2go?tab=readme-ov-file#which-go-version-to-use
17+
runs-on: ubuntu-24.04
1518

1619
steps:
1720
- name: Checkout Repository
@@ -34,12 +37,6 @@ jobs:
3437
fetch-depth: 0
3538
path: rust-tmp
3639

37-
- name: Checkout git-filter-repo
38-
uses: actions/checkout@v4
39-
with:
40-
repository: newren/git-filter-repo
41-
path: git-filter-repo
42-
4340
- name: Fetch toolchain versions
4441
run: |
4542
CURRENT_TOOLCHAIN_DATE=$(grep -oP 'channel = "nightly-\K\d{4}-\d{2}-\d{2}' verify-rust-std/rust-toolchain.toml)
@@ -77,6 +74,30 @@ jobs:
7774
env:
7875
GH_TOKEN: ${{ github.token }}
7976

77+
- name: Checkout splitsh-lite
78+
if: ${{ env.SUBTREE_PR_EXISTS == 'no' }}
79+
uses: actions/checkout@v4
80+
with:
81+
repository: splitsh/lite
82+
path: splitsh-lite
83+
84+
- name: Build splitsh-lite
85+
if: ${{ env.SUBTREE_PR_EXISTS == 'no' }}
86+
run: |
87+
cd splitsh-lite
88+
sudo apt-get install -y golang libgit2-dev
89+
# git2go upstream hasn't been updated to more recent versions of
90+
# libgit2, so using a fork that does stay up to date
91+
sed -i 's#github.com/libgit2/git2go#github.com/jeffwelling/git2go#' go.mod splitter/*
92+
# may need to adjust "v37" to a higher number per
93+
# https://github.com/jeffWelling/git2go?tab=readme-ov-file#which-go-version-to-use
94+
# depening on the libgit2 version being installed
95+
sed -i -e 's/v34/v37/g' go.mod splitter/*.go
96+
# v37.0.0 had issues that weren't fully fixed until v37.0.4
97+
sed -i 's/v37.0.0/v37.0.4/' go.mod
98+
go mod tidy
99+
go build -o splitsh-lite github.com/splitsh/lite
100+
80101
- name: Update subtree/library locally
81102
if: ${{ env.SUBTREE_PR_EXISTS == 'no' }}
82103
run: |
@@ -89,15 +110,16 @@ jobs:
89110
fi
90111
91112
git checkout ${NEXT_COMMIT_HASH}
92-
../git-filter-repo/git-filter-repo --subdirectory-filter library --force
93-
git checkout -b subtree/library
113+
/usr/bin/time -v ../splitsh-lite/splitsh-lite --progress --prefix=library --target subtree/library
114+
git checkout -b subtree/library subtree/library
94115
95116
cd ../verify-rust-std
96117
git remote add rust-filtered ../rust-tmp/
97118
git fetch rust-filtered
98119
git checkout -b subtree/library rust-filtered/subtree/library
99-
# The filter-subtree operation adds an extraneous `library/` folder containing the submodules
100-
# (c.f. https://github.com/model-checking/verify-rust-std/issues/249), so remove that before committing.
120+
# The checkout still leaves behind the library folder with submodules.
121+
# We need to remove this as we'd otherwise have the create-pull-request
122+
# action create an extra commit.
101123
rm -rf library
102124
SUBTREE_HEAD_MSG=$(git log --format=%s -n 1 origin/subtree/library)
103125
UPSTREAM_FROM=$(git log --grep="${SUBTREE_HEAD_MSG}" -n 1 --format=%H rust-filtered/subtree/library)
@@ -107,7 +129,6 @@ jobs:
107129
echo "MERGE_CONFLICTS=noop" >> $GITHUB_ENV
108130
else
109131
git branch --set-upstream-to=origin/subtree/library
110-
git -c user.name=gitbot -c user.email=git@bot rebase
111132
echo "MERGE_CONFLICTS=maybe" >> $GITHUB_ENV
112133
fi
113134
@@ -130,12 +151,15 @@ jobs:
130151
if: ${{ env.MERGE_CONFLICTS != 'noop' && env.MERGE_PR_EXISTS == 'no' }}
131152
run: |
132153
cd verify-rust-std
154+
if ! git rev-parse --verify subtree/library; then
155+
git checkout -t -b subtree/library origin/update-subtree/library
156+
fi
133157
git checkout main
134158
135159
# This command may fail, which will require human intervention.
136160
if ! git \
137161
-c user.name=gitbot -c user.email=git@bot \
138-
subtree merge --prefix=library update-subtree/library --squash; then
162+
subtree merge --prefix=library subtree/library --squash; then
139163
echo "MERGE_CONFLICTS=yes" >> $GITHUB_ENV
140164
git -c user.name=gitbot -c user.email=git@bot commit -a -m "Merge from $NEXT_COMMIT_HASH with conflicts"
141165
else

library/Cargo.lock

Lines changed: 79 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

library/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ members = [
44
"std",
55
"sysroot",
66
"coretests",
7+
"alloctests",
78
]
89

910
exclude = [

library/alloc/Cargo.toml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cargo-features = ["public-dependency"]
2+
13
[package]
24
name = "alloc"
35
version = "0.0.0"
@@ -8,33 +10,15 @@ autotests = false
810
autobenches = false
911
edition = "2021"
1012

13+
[lib]
14+
test = false
15+
bench = false
16+
1117
[dependencies]
12-
core = { path = "../core" }
13-
compiler_builtins = { version = "=0.1.145", features = ['rustc-dep-of-std'] }
18+
core = { path = "../core", public = true }
19+
compiler_builtins = { version = "=0.1.151", features = ['rustc-dep-of-std'] }
1420
safety = { path = "../contracts/safety" }
1521

16-
[dev-dependencies]
17-
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }
18-
rand_xorshift = "0.3.0"
19-
20-
[[test]]
21-
name = "alloctests"
22-
path = "tests/lib.rs"
23-
24-
[[test]]
25-
name = "vec_deque_alloc_error"
26-
path = "tests/vec_deque_alloc_error.rs"
27-
28-
[[bench]]
29-
name = "allocbenches"
30-
path = "benches/lib.rs"
31-
test = true
32-
33-
[[bench]]
34-
name = "vec_deque_append_bench"
35-
path = "benches/vec_deque_append.rs"
36-
harness = false
37-
3822
[features]
3923
compiler-builtins-mem = ['compiler_builtins/mem']
4024
compiler-builtins-c = ["compiler_builtins/c"]

0 commit comments

Comments
 (0)