Skip to content

Commit 0c1448d

Browse files
committed
Auto merge of rust-lang#3755 - rust-lang:rustup-2024-07-20, r=RalfJung
Automatic Rustup
2 parents b3736d6 + 424d79c commit 0c1448d

File tree

1,242 files changed

+21107
-11768
lines changed

Some content is hidden

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

1,242 files changed

+21107
-11768
lines changed

Cargo.lock

+179-14
Original file line numberDiff line numberDiff line change
@@ -228,19 +228,13 @@ dependencies = [
228228
"backtrace",
229229
]
230230

231-
[[package]]
232-
name = "ar"
233-
version = "0.9.0"
234-
source = "registry+https://github.com/rust-lang/crates.io-index"
235-
checksum = "d67af77d68a931ecd5cbd8a3b5987d63a1d1d1278f7f6a60ae33db485cdebb69"
236-
237231
[[package]]
238232
name = "ar_archive_writer"
239-
version = "0.2.0"
233+
version = "0.3.0"
240234
source = "registry+https://github.com/rust-lang/crates.io-index"
241-
checksum = "f0c269894b6fe5e9d7ada0cf69b5bf847ff35bc25fc271f08e1d080fce80339a"
235+
checksum = "f8412a2d690663356cba5a2532f3ed55d1e8090743bc6695b88403b27df67733"
242236
dependencies = [
243-
"object 0.32.2",
237+
"object 0.35.0",
244238
]
245239

246240
[[package]]
@@ -1618,6 +1612,17 @@ dependencies = [
16181612
"rustc-std-workspace-core",
16191613
]
16201614

1615+
[[package]]
1616+
name = "gimli"
1617+
version = "0.31.0"
1618+
source = "registry+https://github.com/rust-lang/crates.io-index"
1619+
checksum = "32085ea23f3234fc7846555e85283ba4de91e21016dc0455a16286d87a292d64"
1620+
dependencies = [
1621+
"fallible-iterator",
1622+
"indexmap",
1623+
"stable_deref_trait",
1624+
]
1625+
16211626
[[package]]
16221627
name = "glob"
16231628
version = "0.3.1"
@@ -1671,6 +1676,7 @@ dependencies = [
16711676
"compiler_builtins",
16721677
"rustc-std-workspace-alloc",
16731678
"rustc-std-workspace-core",
1679+
"serde",
16741680
]
16751681

16761682
[[package]]
@@ -1880,6 +1886,12 @@ dependencies = [
18801886
"syn 2.0.67",
18811887
]
18821888

1889+
[[package]]
1890+
name = "id-arena"
1891+
version = "2.2.1"
1892+
source = "registry+https://github.com/rust-lang/crates.io-index"
1893+
checksum = "25a2bc672d1148e28034f176e01fffebb08b35768468cc954630da77a1449005"
1894+
18831895
[[package]]
18841896
name = "ident_case"
18851897
version = "1.0.1"
@@ -2109,6 +2121,12 @@ version = "1.0.5"
21092121
source = "registry+https://github.com/rust-lang/crates.io-index"
21102122
checksum = "db13adb97ab515a3691f56e4dbab09283d0b86cb45abd991d8634a9d6f501760"
21112123

2124+
[[package]]
2125+
name = "lexopt"
2126+
version = "0.3.0"
2127+
source = "registry+https://github.com/rust-lang/crates.io-index"
2128+
checksum = "baff4b617f7df3d896f97fe922b64817f6cd9a756bb81d40f8883f2f66dcb401"
2129+
21122130
[[package]]
21132131
name = "libc"
21142132
version = "0.2.155"
@@ -2623,7 +2641,7 @@ dependencies = [
26232641
"indexmap",
26242642
"memchr",
26252643
"ruzstd 0.5.0",
2626-
"wasmparser",
2644+
"wasmparser 0.118.2",
26272645
]
26282646

26292647
[[package]]
@@ -2637,6 +2655,15 @@ dependencies = [
26372655
"ruzstd 0.6.0",
26382656
]
26392657

2658+
[[package]]
2659+
name = "object"
2660+
version = "0.35.0"
2661+
source = "registry+https://github.com/rust-lang/crates.io-index"
2662+
checksum = "b8ec7ab813848ba4522158d5517a6093db1ded27575b070f4177b8d12b41db5e"
2663+
dependencies = [
2664+
"memchr",
2665+
]
2666+
26402667
[[package]]
26412668
name = "object"
26422669
version = "0.36.0"
@@ -3418,14 +3445,13 @@ dependencies = [
34183445
name = "run_make_support"
34193446
version = "0.2.0"
34203447
dependencies = [
3421-
"ar",
34223448
"bstr",
34233449
"build_helper",
3424-
"gimli 0.28.1",
3450+
"gimli 0.31.0",
34253451
"object 0.34.0",
34263452
"regex",
34273453
"similar",
3428-
"wasmparser",
3454+
"wasmparser 0.118.2",
34293455
]
34303456

34313457
[[package]]
@@ -3812,7 +3838,7 @@ dependencies = [
38123838
"thin-vec",
38133839
"thorin-dwp",
38143840
"tracing",
3815-
"wasm-encoder",
3841+
"wasm-encoder 0.200.0",
38163842
"windows",
38173843
]
38183844

@@ -4385,6 +4411,7 @@ dependencies = [
43854411
name = "rustc_mir_build"
43864412
version = "0.0.0"
43874413
dependencies = [
4414+
"either",
43884415
"itertools",
43894416
"rustc_apfloat",
43904417
"rustc_arena",
@@ -5256,6 +5283,15 @@ dependencies = [
52565283
"color-eyre",
52575284
]
52585285

5286+
[[package]]
5287+
name = "spdx"
5288+
version = "0.10.6"
5289+
source = "registry+https://github.com/rust-lang/crates.io-index"
5290+
checksum = "47317bbaf63785b53861e1ae2d11b80d6b624211d42cb20efcd210ee6f8a14bc"
5291+
dependencies = [
5292+
"smallvec",
5293+
]
5294+
52595295
[[package]]
52605296
name = "spdx-expression"
52615297
version = "0.5.2"
@@ -6304,6 +6340,28 @@ version = "0.2.92"
63046340
source = "registry+https://github.com/rust-lang/crates.io-index"
63056341
checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96"
63066342

6343+
[[package]]
6344+
name = "wasm-component-ld"
6345+
version = "0.5.4"
6346+
source = "registry+https://github.com/rust-lang/crates.io-index"
6347+
checksum = "314d932d5e84c9678751b85498b1482b2f32f185744e449d3ce0b1d400376dad"
6348+
dependencies = [
6349+
"anyhow",
6350+
"clap",
6351+
"lexopt",
6352+
"tempfile",
6353+
"wasmparser 0.210.0",
6354+
"wat",
6355+
"wit-component",
6356+
]
6357+
6358+
[[package]]
6359+
name = "wasm-component-ld-wrapper"
6360+
version = "0.1.0"
6361+
dependencies = [
6362+
"wasm-component-ld",
6363+
]
6364+
63076365
[[package]]
63086366
name = "wasm-encoder"
63096367
version = "0.200.0"
@@ -6313,6 +6371,40 @@ dependencies = [
63136371
"leb128",
63146372
]
63156373

6374+
[[package]]
6375+
name = "wasm-encoder"
6376+
version = "0.210.0"
6377+
source = "registry+https://github.com/rust-lang/crates.io-index"
6378+
checksum = "e7e3764d9d6edabd8c9e16195e177be0d20f6ab942ad18af52860f12f82bc59a"
6379+
dependencies = [
6380+
"leb128",
6381+
]
6382+
6383+
[[package]]
6384+
name = "wasm-encoder"
6385+
version = "0.211.1"
6386+
source = "registry+https://github.com/rust-lang/crates.io-index"
6387+
checksum = "5e7d931a1120ef357f32b74547646b6fa68ea25e377772b72874b131a9ed70d4"
6388+
dependencies = [
6389+
"leb128",
6390+
]
6391+
6392+
[[package]]
6393+
name = "wasm-metadata"
6394+
version = "0.210.0"
6395+
source = "registry+https://github.com/rust-lang/crates.io-index"
6396+
checksum = "012729d1294907fcb0866f08460ab95426a6d0b176a599619b84cac7653452b4"
6397+
dependencies = [
6398+
"anyhow",
6399+
"indexmap",
6400+
"serde",
6401+
"serde_derive",
6402+
"serde_json",
6403+
"spdx",
6404+
"wasm-encoder 0.210.0",
6405+
"wasmparser 0.210.0",
6406+
]
6407+
63166408
[[package]]
63176409
name = "wasmparser"
63186410
version = "0.118.2"
@@ -6323,6 +6415,42 @@ dependencies = [
63236415
"semver",
63246416
]
63256417

6418+
[[package]]
6419+
name = "wasmparser"
6420+
version = "0.210.0"
6421+
source = "registry+https://github.com/rust-lang/crates.io-index"
6422+
checksum = "a7bbcd21e7581619d9f6ca00f8c4f08f1cacfe58bf63f83af57cd0476f1026f5"
6423+
dependencies = [
6424+
"ahash",
6425+
"bitflags 2.5.0",
6426+
"hashbrown",
6427+
"indexmap",
6428+
"semver",
6429+
"serde",
6430+
]
6431+
6432+
[[package]]
6433+
name = "wast"
6434+
version = "211.0.1"
6435+
source = "registry+https://github.com/rust-lang/crates.io-index"
6436+
checksum = "b25506dd82d00da6b14a87436b3d52b1d264083fa79cdb72a0d1b04a8595ccaa"
6437+
dependencies = [
6438+
"bumpalo",
6439+
"leb128",
6440+
"memchr",
6441+
"unicode-width",
6442+
"wasm-encoder 0.211.1",
6443+
]
6444+
6445+
[[package]]
6446+
name = "wat"
6447+
version = "1.211.1"
6448+
source = "registry+https://github.com/rust-lang/crates.io-index"
6449+
checksum = "eb716ca6c86eecac2d82541ffc39860118fc0af9309c4f2670637bea2e1bdd7d"
6450+
dependencies = [
6451+
"wast",
6452+
]
6453+
63266454
[[package]]
63276455
name = "winapi"
63286456
version = "0.3.9"
@@ -6550,6 +6678,43 @@ dependencies = [
65506678
"memchr",
65516679
]
65526680

6681+
[[package]]
6682+
name = "wit-component"
6683+
version = "0.210.0"
6684+
source = "registry+https://github.com/rust-lang/crates.io-index"
6685+
checksum = "a450bdb5d032acf1fa0865451fa0c6f50e62f2d31eaa8dba967c2e2d068694a4"
6686+
dependencies = [
6687+
"anyhow",
6688+
"bitflags 2.5.0",
6689+
"indexmap",
6690+
"log",
6691+
"serde",
6692+
"serde_derive",
6693+
"serde_json",
6694+
"wasm-encoder 0.210.0",
6695+
"wasm-metadata",
6696+
"wasmparser 0.210.0",
6697+
"wit-parser",
6698+
]
6699+
6700+
[[package]]
6701+
name = "wit-parser"
6702+
version = "0.210.0"
6703+
source = "registry+https://github.com/rust-lang/crates.io-index"
6704+
checksum = "60a965cbd439af19a4b44a54a97ab8957d86f02d01320efc9e31c1d3605c6710"
6705+
dependencies = [
6706+
"anyhow",
6707+
"id-arena",
6708+
"indexmap",
6709+
"log",
6710+
"semver",
6711+
"serde",
6712+
"serde_derive",
6713+
"serde_json",
6714+
"unicode-xid",
6715+
"wasmparser 0.210.0",
6716+
]
6717+
65536718
[[package]]
65546719
name = "writeable"
65556720
version = "0.5.5"

Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ members = [
4545
"src/tools/opt-dist",
4646
"src/tools/coverage-dump",
4747
"src/tools/rustc-perf-wrapper",
48+
"src/tools/wasm-component-ld",
4849
]
4950

5051
exclude = [
@@ -104,6 +105,9 @@ rustc-demangle.debug = 0
104105
[profile.release.package.lld-wrapper]
105106
debug = 0
106107
strip = true
108+
[profile.release.package.wasm-component-ld-wrapper]
109+
debug = 0
110+
strip = true
107111

108112
[patch.crates-io]
109113
# See comments in `library/rustc-std-workspace-core/README.md` for what's going on

RELEASES.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Stabilized APIs
6767
- [`NonNull::byte_add`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.byte_add)
6868
- [`NonNull::sub`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.sub)
6969
- [`NonNull::byte_sub`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.byte_sub)
70-
- [`NonNull:offset_from`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.offset_from)
70+
- [`NonNull::offset_from`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.offset_from)
7171
- [`NonNull::byte_offset_from`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.byte_offset_from)
7272
- [`NonNull::read`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.read)
7373
- [`NonNull::read_volatile`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.read_volatile)
@@ -91,9 +91,9 @@ Stabilized APIs
9191
- [`str::trim_ascii`](https://doc.rust-lang.org/beta/std/primitive.str.html#method.trim_ascii)
9292
- [`str::trim_ascii_start`](https://doc.rust-lang.org/beta/std/primitive.str.html#method.trim_ascii_start)
9393
- [`str::trim_ascii_end`](https://doc.rust-lang.org/beta/std/primitive.str.html#method.trim_ascii_end)
94-
- [`<[AsciiChar]>::trim_ascii`](https://doc.rust-lang.org/beta/core/primitive.slice.html#method.trim_ascii)
95-
- [`<[AsciiChar]>::trim_ascii_start`](https://doc.rust-lang.org/beta/core/primitive.slice.html#method.trim_ascii_start)
96-
- [`<[AsciiChar]>::trim_ascii_end`](https://doc.rust-lang.org/beta/core/primitive.slice.html#method.trim_ascii_end)
94+
- [`<[u8]>::trim_ascii`](https://doc.rust-lang.org/beta/core/primitive.slice.html#method.trim_ascii)
95+
- [`<[u8]>::trim_ascii_start`](https://doc.rust-lang.org/beta/core/primitive.slice.html#method.trim_ascii_start)
96+
- [`<[u8]>::trim_ascii_end`](https://doc.rust-lang.org/beta/core/primitive.slice.html#method.trim_ascii_end)
9797
- [`Ipv4Addr::BITS`](https://doc.rust-lang.org/beta/core/net/struct.Ipv4Addr.html#associatedconstant.BITS)
9898
- [`Ipv4Addr::to_bits`](https://doc.rust-lang.org/beta/core/net/struct.Ipv4Addr.html#method.to_bits)
9999
- [`Ipv4Addr::from_bits`](https://doc.rust-lang.org/beta/core/net/struct.Ipv4Addr.html#method.from_bits)

compiler/rustc/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ features = ['unprefixed_malloc_on_supported_platforms']
2727

2828
[features]
2929
# tidy-alphabetical-start
30-
jemalloc = ['jemalloc-sys']
30+
jemalloc = ['dep:jemalloc-sys']
3131
llvm = ['rustc_driver_impl/llvm']
3232
max_level_info = ['rustc_driver_impl/max_level_info']
3333
rustc_use_parallel_compiler = ['rustc_driver_impl/rustc_use_parallel_compiler']

compiler/rustc/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
fn main() {
3636
// See the comment at the top of this file for an explanation of this.
37-
#[cfg(feature = "jemalloc-sys")]
37+
#[cfg(feature = "jemalloc")]
3838
{
3939
use std::os::raw::{c_int, c_void};
4040

compiler/rustc_abi/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ default = ["nightly", "randomize"]
2121
# rust-analyzer depends on this crate and we therefore require it to built on a stable toolchain
2222
# without depending on rustc_data_structures, rustc_macros and rustc_serialize
2323
nightly = [
24-
"rustc_data_structures",
24+
"dep:rustc_data_structures",
25+
"dep:rustc_macros",
26+
"dep:rustc_serialize",
2527
"rustc_index/nightly",
26-
"rustc_macros",
27-
"rustc_serialize",
2828
]
29-
randomize = ["rand", "rand_xoshiro", "nightly"]
29+
randomize = ["dep:rand", "dep:rand_xoshiro", "nightly"]
3030
# tidy-alphabetical-end

compiler/rustc_abi/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ impl Step for Size {
627627

628628
#[inline]
629629
unsafe fn forward_unchecked(start: Self, count: usize) -> Self {
630-
Self::from_bytes(u64::forward_unchecked(start.bytes(), count))
630+
Self::from_bytes(unsafe { u64::forward_unchecked(start.bytes(), count) })
631631
}
632632

633633
#[inline]
@@ -642,7 +642,7 @@ impl Step for Size {
642642

643643
#[inline]
644644
unsafe fn backward_unchecked(start: Self, count: usize) -> Self {
645-
Self::from_bytes(u64::backward_unchecked(start.bytes(), count))
645+
Self::from_bytes(unsafe { u64::backward_unchecked(start.bytes(), count) })
646646
}
647647
}
648648

0 commit comments

Comments
 (0)