Skip to content

Commit e4ceba4

Browse files
authored
Merge branch 'master' into spare-a-crumb
2 parents 43e0a38 + b605c65 commit e4ceba4

File tree

958 files changed

+20185
-10379
lines changed

Some content is hidden

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

958 files changed

+20185
-10379
lines changed

.github/ISSUE_TEMPLATE/bootstrap.md

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
name: Bootstrap (Rust Build System) Report
3+
about: Issues encountered on bootstrap build system
4+
labels: C-bug, T-bootstrap
5+
---
6+
7+
<!--
8+
Thank you for submitting a bootstrap report! Please provide detailed information to help us reproduce and diagnose the issue.
9+
-->
10+
11+
### Summary
12+
13+
<!--
14+
Provide a brief description of the problem you are experiencing.
15+
-->
16+
17+
### Command used
18+
19+
```sh
20+
<command>
21+
```
22+
23+
### Expected behaviour
24+
25+
<!--
26+
Describe what you expected to happen.
27+
-->
28+
29+
### Actual behaviour
30+
31+
<!--
32+
Describe what actually happened.
33+
-->
34+
35+
### Bootstrap configuration (config.toml)
36+
```toml
37+
<config>
38+
```
39+
40+
### Operating system
41+
42+
<!--
43+
e.g., Ubuntu 22.04, macOS 12, Windows 10
44+
-->
45+
46+
### HEAD
47+
48+
<!--
49+
Output of `git rev-parse HEAD` command, or content of the `git-commit-hash` file if using a tarball source.
50+
-->
51+
52+
### Additional context
53+
<!--
54+
Include any other relevant information (e.g., if you have custom patches or modifications on the project).
55+
-->
56+
57+
58+
<!--
59+
Include the complete build log in the section below.
60+
Enable backtrace and verbose mode if possible for more detailed information e.g., with `RUST_BACKTRACE=1 ./x build -v`.
61+
-->
62+
<details><summary>Build Log</summary>
63+
<p>
64+
65+
```txt
66+
<log>
67+
```
68+
69+
</p>
70+
</details>

.github/workflows/ghcr.yml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Mirror DockerHub images used by the Rust project to ghcr.io.
2+
# Images are available at https://github.com/orgs/rust-lang/packages.
3+
#
4+
# In some CI jobs, we pull images from ghcr.io instead of Docker Hub because
5+
# Docker Hub has a rate limit, while ghcr.io doesn't.
6+
# Those images are pushed to ghcr.io by this job.
7+
#
8+
# Note that authenticating to DockerHub or other registries isn't possible
9+
# for PR jobs, because forks can't access secrets.
10+
# That's why we use ghcr.io: it has no rate limit and it doesn't require authentication.
11+
12+
name: GHCR image mirroring
13+
14+
on:
15+
workflow_dispatch:
16+
schedule:
17+
# Run daily at midnight UTC
18+
- cron: '0 0 * * *'
19+
20+
jobs:
21+
mirror:
22+
name: DockerHub mirror
23+
runs-on: ubuntu-24.04
24+
if: github.repository == 'rust-lang/rust'
25+
permissions:
26+
# Needed to write to the ghcr.io registry
27+
packages: write
28+
steps:
29+
- uses: actions/checkout@v4
30+
with:
31+
persist-credentials: false
32+
33+
- name: Log in to registry
34+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
35+
36+
# Download crane in the current directory.
37+
# We use crane because it copies the docker image for all the architectures available in
38+
# DockerHub for the image.
39+
# Learn more about crane at
40+
# https://github.com/google/go-containerregistry/blob/main/cmd/crane/README.md
41+
- name: Download crane
42+
run: |
43+
curl -sL "https://github.com/google/go-containerregistry/releases/download/${VERSION}/go-containerregistry_${OS}_${ARCH}.tar.gz" | tar -xzf -
44+
env:
45+
VERSION: v0.20.2
46+
OS: Linux
47+
ARCH: x86_64
48+
49+
- name: Mirror DockerHub
50+
run: |
51+
# List of DockerHub images to mirror to ghcr.io
52+
images=(
53+
# Mirrored because used by the mingw-check-tidy, which doesn't cache Docker images
54+
"ubuntu:22.04"
55+
# Mirrored because used by all linux CI jobs, including mingw-check-tidy
56+
"moby/buildkit:buildx-stable-1"
57+
)
58+
59+
# Mirror each image from DockerHub to ghcr.io
60+
for img in "${images[@]}"; do
61+
echo "Mirroring ${img}..."
62+
# Remove namespace from the image if any.
63+
# E.g. "moby/buildkit:buildx-stable-1" becomes "buildkit:buildx-stable-1"
64+
dest_image=$(echo "${img}" | cut -d'/' -f2-)
65+
./crane copy \
66+
"docker.io/${img}" \
67+
"ghcr.io/${{ github.repository_owner }}/${dest_image}"
68+
done

CONTRIBUTING.md

+9
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ Documentation for contributing to the compiler or tooling is located in the [Gui
1212
Development][rustc-dev-guide], commonly known as the [rustc-dev-guide]. Documentation for the
1313
standard library in the [Standard library developers Guide][std-dev-guide], commonly known as the [std-dev-guide].
1414

15+
## Making changes to subtrees and submodules
16+
17+
For submodules, changes need to be made against the repository corresponding the
18+
submodule, and not the main `rust-lang/rust` repository.
19+
20+
For subtrees, prefer sending a PR against the subtree's repository if it does
21+
not need to be made against the main `rust-lang/rust` repostory (e.g. a
22+
rustc-dev-guide change that does not accompany a compiler change).
23+
1524
## About the [rustc-dev-guide]
1625

1726
The [rustc-dev-guide] is meant to help document how rustc –the Rust compiler– works,

Cargo.lock

+33-27
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,12 @@ dependencies = [
172172

173173
[[package]]
174174
name = "anstyle-wincon"
175-
version = "3.0.6"
175+
version = "3.0.7"
176176
source = "registry+https://github.com/rust-lang/crates.io-index"
177-
checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125"
177+
checksum = "ca3534e77181a9cc07539ad51f2141fe32f6c3ffd4df76db8ad92346b003ae4e"
178178
dependencies = [
179179
"anstyle",
180+
"once_cell",
180181
"windows-sys 0.59.0",
181182
]
182183

@@ -254,9 +255,9 @@ dependencies = [
254255

255256
[[package]]
256257
name = "bitflags"
257-
version = "2.7.0"
258+
version = "2.8.0"
258259
source = "registry+https://github.com/rust-lang/crates.io-index"
259-
checksum = "1be3f42a67d6d345ecd59f675f3f012d6974981560836e938c22b424b85ce1be"
260+
checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36"
260261

261262
[[package]]
262263
name = "blake3"
@@ -450,9 +451,9 @@ dependencies = [
450451

451452
[[package]]
452453
name = "chrono-tz"
453-
version = "0.10.0"
454+
version = "0.10.1"
454455
source = "registry+https://github.com/rust-lang/crates.io-index"
455-
checksum = "cd6dd8046d00723a59a2f8c5f295c515b9bb9a331ee4f8f3d4dd49e428acd3b6"
456+
checksum = "9c6ac4f2c0bf0f44e9161aec9675e1050aa4a530663c4a9e37e108fa948bca9f"
456457
dependencies = [
457458
"chrono",
458459
"chrono-tz-build",
@@ -1223,7 +1224,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
12231224
checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c"
12241225
dependencies = [
12251226
"crc32fast",
1226-
"miniz_oxide 0.8.2",
1227+
"miniz_oxide 0.8.3",
12271228
]
12281229

12291230
[[package]]
@@ -1954,9 +1955,9 @@ dependencies = [
19541955

19551956
[[package]]
19561957
name = "js-sys"
1957-
version = "0.3.76"
1958+
version = "0.3.77"
19581959
source = "registry+https://github.com/rust-lang/crates.io-index"
1959-
checksum = "6717b6b5b077764fb5966237269cb3c64edddde4b14ce42647430a78ced9e7b7"
1960+
checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
19601961
dependencies = [
19611962
"once_cell",
19621963
"wasm-bindgen",
@@ -2152,9 +2153,9 @@ dependencies = [
21522153

21532154
[[package]]
21542155
name = "log"
2155-
version = "0.4.22"
2156+
version = "0.4.25"
21562157
source = "registry+https://github.com/rust-lang/crates.io-index"
2157-
checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
2158+
checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f"
21582159

21592160
[[package]]
21602161
name = "lzma-sys"
@@ -2317,9 +2318,9 @@ dependencies = [
23172318

23182319
[[package]]
23192320
name = "miniz_oxide"
2320-
version = "0.8.2"
2321+
version = "0.8.3"
23212322
source = "registry+https://github.com/rust-lang/crates.io-index"
2322-
checksum = "4ffbe83022cedc1d264172192511ae958937694cd57ce297164951b8b3568394"
2323+
checksum = "b8402cab7aefae129c6977bb0ff1b8fd9a04eb5b51efc50a70bea51cda0c7924"
23232324
dependencies = [
23242325
"adler2",
23252326
]
@@ -4259,6 +4260,7 @@ dependencies = [
42594260
"rustc_serialize",
42604261
"rustc_type_ir",
42614262
"rustc_type_ir_macros",
4263+
"smallvec",
42624264
"tracing",
42634265
]
42644266

@@ -5835,18 +5837,18 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
58355837

58365838
[[package]]
58375839
name = "uuid"
5838-
version = "1.11.1"
5840+
version = "1.12.0"
58395841
source = "registry+https://github.com/rust-lang/crates.io-index"
5840-
checksum = "b913a3b5fe84142e269d63cc62b64319ccaf89b748fc31fe025177f767a756c4"
5842+
checksum = "744018581f9a3454a9e15beb8a33b017183f1e7c0cd170232a2d1453b23a51c4"
58415843
dependencies = [
58425844
"getrandom",
58435845
]
58445846

58455847
[[package]]
58465848
name = "valuable"
5847-
version = "0.1.0"
5849+
version = "0.1.1"
58485850
source = "registry+https://github.com/rust-lang/crates.io-index"
5849-
checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"
5851+
checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
58505852

58515853
[[package]]
58525854
name = "vcpkg"
@@ -5884,20 +5886,21 @@ checksum = "0f76d9fa52234153eeb40b088de91a8c13dc28a912cf6f31cd89ca4bac9024e0"
58845886

58855887
[[package]]
58865888
name = "wasm-bindgen"
5887-
version = "0.2.99"
5889+
version = "0.2.100"
58885890
source = "registry+https://github.com/rust-lang/crates.io-index"
5889-
checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396"
5891+
checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
58905892
dependencies = [
58915893
"cfg-if",
58925894
"once_cell",
5895+
"rustversion",
58935896
"wasm-bindgen-macro",
58945897
]
58955898

58965899
[[package]]
58975900
name = "wasm-bindgen-backend"
5898-
version = "0.2.99"
5901+
version = "0.2.100"
58995902
source = "registry+https://github.com/rust-lang/crates.io-index"
5900-
checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79"
5903+
checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
59015904
dependencies = [
59025905
"bumpalo",
59035906
"log",
@@ -5909,19 +5912,19 @@ dependencies = [
59095912

59105913
[[package]]
59115914
name = "wasm-bindgen-macro"
5912-
version = "0.2.99"
5915+
version = "0.2.100"
59135916
source = "registry+https://github.com/rust-lang/crates.io-index"
5914-
checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe"
5917+
checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
59155918
dependencies = [
59165919
"quote",
59175920
"wasm-bindgen-macro-support",
59185921
]
59195922

59205923
[[package]]
59215924
name = "wasm-bindgen-macro-support"
5922-
version = "0.2.99"
5925+
version = "0.2.100"
59235926
source = "registry+https://github.com/rust-lang/crates.io-index"
5924-
checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2"
5927+
checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
59255928
dependencies = [
59265929
"proc-macro2",
59275930
"quote",
@@ -5932,9 +5935,12 @@ dependencies = [
59325935

59335936
[[package]]
59345937
name = "wasm-bindgen-shared"
5935-
version = "0.2.99"
5938+
version = "0.2.100"
59365939
source = "registry+https://github.com/rust-lang/crates.io-index"
5937-
checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6"
5940+
checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
5941+
dependencies = [
5942+
"unicode-ident",
5943+
]
59385944

59395945
[[package]]
59405946
name = "wasm-component-ld"

RELEASES.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ Language
359359
- [`addr_of(_mut)!` macros and the newly stabilized `&raw (const|mut)` are now safe to use with all static items](https://github.com/rust-lang/rust/pull/125834)
360360
- [size_of_val_raw: for length 0 this is safe to call](https://github.com/rust-lang/rust/pull/126152/)
361361
- [Reorder trait bound modifiers *after* `for<...>` binder in trait bounds](https://github.com/rust-lang/rust/pull/127054/)
362-
- [Stabilize opaque type precise capturing (RFC 3617)](https://github.com/rust-lang/rust/pull/127672)
362+
- [Stabilize `+ use<'lt>` opaque type precise capturing (RFC 3617)](https://github.com/rust-lang/rust/pull/127672)
363363
- [Stabilize `&raw const` and `&raw mut` operators (RFC 2582)](https://github.com/rust-lang/rust/pull/127679)
364364
- [Stabilize unsafe extern blocks (RFC 3484)](https://github.com/rust-lang/rust/pull/127921)
365365
- [Stabilize nested field access in `offset_of!`](https://github.com/rust-lang/rust/pull/128284)

0 commit comments

Comments
 (0)