about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2025-02-12 14:18:17 -0800
committerEric Huss <eric@huss.org>2025-03-11 09:46:34 -0700
commit993359e70112fab8daad4c85ff5b069f9fbdd197 (patch)
treeffa8a9714e4279f308234566f686b427e61af631 /library/std/src
parent540ef90832539fbad89f2958c66c0af1d66d49b6 (diff)
downloadrust-993359e70112fab8daad4c85ff5b069f9fbdd197.tar.gz
rust-993359e70112fab8daad4c85ff5b069f9fbdd197.zip
Migrate std to Rust 2024
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/keyword_docs.rs2
-rw-r--r--library/std/src/os/windows/process.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/keyword_docs.rs b/library/std/src/keyword_docs.rs
index 5ac3dbc3e98..c07c391892d 100644
--- a/library/std/src/keyword_docs.rs
+++ b/library/std/src/keyword_docs.rs
@@ -1064,7 +1064,7 @@ mod move_keyword {}
 /// ```rust,compile_fail,E0502
 /// let mut v = vec![0, 1];
 /// let mut_ref_v = &mut v;
-/// ##[allow(unused)]
+/// # #[allow(unused)]
 /// let ref_v = &v;
 /// mut_ref_v.push(2);
 /// ```
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,