Skip to content

Commit 5aede39

Browse files
committed
Auto merge of rust-lang#147453 - matthiaskrgr:rollup-z3db8zi, r=matthiaskrgr
Rollup of 8 pull requests Successful merges: - rust-lang#146865 (kcfi: only reify trait methods when dyn-compatible) - rust-lang#147205 (Add a new `wasm32-wasip3` target to Rust) - rust-lang#147322 (cg_llvm: Consistently import `llvm::Type` and `llvm::Value`) - rust-lang#147398 (Fix; correct placement of type inference error for method calls) - rust-lang#147410 (Update `S-waiting-on-team` refs to new `S-waiting-on-{team}` labels) - rust-lang#147422 (collect-license-metadata: Print a diff of the expected output) - rust-lang#147431 (compiletest: Read the whole test file before parsing directives) - rust-lang#147433 (Fix doc comment) Failed merges: - rust-lang#147390 (Use globals instead of metadata for std::autodiff) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 8064a24 + d936405 commit 5aede39

File tree

9 files changed

+15
-10
lines changed

9 files changed

+15
-10
lines changed

std/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ wasip2 = { version = '0.14.4', features = [
8585
'rustc-dep-of-std',
8686
], default-features = false, package = 'wasi' }
8787

88+
[target.'cfg(all(target_os = "wasi", target_env = "p3"))'.dependencies]
89+
wasip2 = { version = '0.14.4', features = [
90+
'rustc-dep-of-std',
91+
], default-features = false, package = 'wasi' }
92+
8893
[target.'cfg(target_os = "uefi")'.dependencies]
8994
r-efi = { version = "5.2.0", features = ['rustc-dep-of-std'] }
9095
r-efi-alloc = { version = "2.0.0", features = ['rustc-dep-of-std'] }

std/src/os/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub mod linux;
103103
all(target_vendor = "fortanix", target_env = "sgx")
104104
)
105105
)))]
106-
#[cfg(any(target_os = "wasi", doc))]
106+
#[cfg(any(target_os = "wasi", any(target_env = "p1", target_env = "p2"), doc))]
107107
pub mod wasi;
108108

109109
#[cfg(any(all(target_os = "wasi", target_env = "p2"), doc))]

std/src/sys/args/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ cfg_select! {
3636
mod wasip1;
3737
pub use wasip1::*;
3838
}
39-
all(target_os = "wasi", target_env = "p2") => {
39+
all(target_os = "wasi", any(target_env = "p2", target_env = "p3")) => {
4040
mod wasip2;
4141
pub use wasip2::*;
4242
}

std/src/sys/net/connection/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cfg_select! {
33
all(target_family = "unix", not(target_os = "l4re")),
44
target_os = "windows",
55
target_os = "hermit",
6-
all(target_os = "wasi", target_env = "p2"),
6+
all(target_os = "wasi", any(target_env = "p2", target_env = "p3")),
77
target_os = "solid_asp3",
88
) => {
99
mod socket;

std/src/sys/net/connection/socket/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ cfg_select! {
2626
mod unix;
2727
pub use unix::*;
2828
}
29-
all(target_os = "wasi", target_env = "p2") => {
29+
all(target_os = "wasi", any(target_env = "p2", target_env = "p3")) => {
3030
mod wasip2;
3131
pub use wasip2::*;
3232
}

std/src/sys/pal/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ cfg_select! {
4949
mod vexos;
5050
pub use self::vexos::*;
5151
}
52-
all(target_os = "wasi", target_env = "p2") => {
52+
all(target_os = "wasi", any(target_env = "p2", target_env = "p3")) => {
5353
mod wasip2;
5454
pub use self::wasip2::*;
5555
}

std/src/sys/random/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ cfg_select! {
9090
mod wasip1;
9191
pub use wasip1::fill_bytes;
9292
}
93-
all(target_os = "wasi", target_env = "p2") => {
93+
all(target_os = "wasi", any(target_env = "p2", target_env = "p3")) => {
9494
mod wasip2;
9595
pub use wasip2::{fill_bytes, hashmap_random_keys};
9696
}
@@ -115,7 +115,7 @@ cfg_select! {
115115
target_os = "linux",
116116
target_os = "android",
117117
all(target_family = "wasm", target_os = "unknown"),
118-
all(target_os = "wasi", target_env = "p2"),
118+
all(target_os = "wasi", not(target_env = "p1")),
119119
target_os = "xous",
120120
target_os = "vexos",
121121
)))]

std/src/sys/stdio/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ cfg_select! {
3737
mod wasip1;
3838
pub use wasip1::*;
3939
}
40-
all(target_os = "wasi", target_env = "p2") => {
40+
all(target_os = "wasi", any(target_env = "p2", target_env = "p3")) => {
4141
mod wasip2;
4242
pub use wasip2::*;
4343
}

std/src/sys/thread/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ cfg_select! {
9999
#[cfg(not(target_feature = "atomics"))]
100100
pub use unsupported::{Thread, available_parallelism};
101101
}
102-
all(target_os = "wasi", target_env = "p2") => {
102+
all(target_os = "wasi", any(target_env = "p2", target_env = "p3")) => {
103103
mod wasip2;
104104
pub use wasip2::{sleep, sleep_until};
105105
#[expect(dead_code)]
@@ -146,7 +146,7 @@ cfg_select! {
146146
target_os = "hurd",
147147
target_os = "fuchsia",
148148
target_os = "vxworks",
149-
all(target_os = "wasi", target_env = "p2"),
149+
all(target_os = "wasi", not(target_env = "p1")),
150150
)))]
151151
pub fn sleep_until(deadline: crate::time::Instant) {
152152
use crate::time::Instant;

0 commit comments

Comments
 (0)