about summary refs log tree commit diff
path: root/library/std/src/os
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-13 10:58:21 +0100
committerGitHub <noreply@github.com>2025-03-13 10:58:21 +0100
commit448aa30b5ae0a1c1d3bc083022873d715136263b (patch)
tree4193eb7f12b4436d5634258bf06f408f9d1f0350 /library/std/src/os
parent952757246035881d70c92b1de5014e26d3cbe469 (diff)
parentb130747e92c92c6cf3a1abb1ac71825eba6b18e3 (diff)
Rollup merge of #138162 - ehuss:library-2024, r=cuviper
Update the standard library to Rust 2024

This updates the standard library to Rust 2024. This includes the following notable changes:

- Macros are updated to use new expression fragment specifiers. This PR includes a test to illustrate the changes, primarily allowing `const {...}` expressions now.
- Some tests show a change in MIR drop order. We do not believe this will be an observable change ([see zulip discussion](https://rust-lang.zulipchat.com/#narrow/channel/268952-edition/topic/standard.20library.20migration/near/500972873)).

Fixes https://github.com/rust-lang/rust/issues/133081
Diffstat (limited to 'library/std/src/os')
-rw-r--r--library/std/src/os/windows/process.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/os/windows/process.rs b/library/std/src/os/windows/process.rs
index fa65a7c51bf..a084f452e55 100644
--- a/library/std/src/os/windows/process.rs
+++ b/library/std/src/os/windows/process.rs
@@ -531,7 +531,7 @@ impl<'a> ProcThreadAttributeListBuilder<'a> {
     ///     pub Y: i16,
     /// }
     ///
-    /// extern "system" {
+    /// unsafe extern "system" {
     ///     fn CreatePipe(
     ///         hreadpipe: *mut HANDLE,
     ///         hwritepipe: *mut HANDLE,