Skip to content

Commit e2026da

Browse files
Rollup merge of #163110 - clarfonthey:wasip2-module, r=alexcrichton
Mark `std::os::wasip2` with correct doc-cfgs, mark as unstable r? @alexcrichton So, initially went through a bit thinking this was secretly stable since Rust 1.78.0 but it turns out that rustdoc was just not displaying this correctly, as it wasn't set up like the other modules. Even though this can't actually be accessed without the `wasip2` feature (I think), I decided to mark it as unstable anyway just to be safe, since it's more correct for docs anyway.
2 parents 8915d07 + e4ad05b commit e2026da

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • library/std/src/os/wasip2

‎library/std/src/os/wasip2/mod.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
//! This module is currently empty, but will be filled over time as wasi-libc support for WASI Preview 2 is stabilized.
44
55
#![forbid(unsafe_op_in_unsafe_fn)]
6-
#![stable(feature = "raw_ext", since = "1.1.0")]
6+
#![unstable(feature = "wasip2", issue = "none")]
7+
#![doc(cfg(all(target_os = "wasi", target_env = "p2")))]

0 commit comments

Comments
 (0)