about summary refs log tree commit diff
path: root/library/std
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
parent540ef90832539fbad89f2958c66c0af1d66d49b6 (diff)
downloadrust-993359e70112fab8daad4c85ff5b069f9fbdd197.tar.gz
rust-993359e70112fab8daad4c85ff5b069f9fbdd197.zip
Migrate std to Rust 2024
Diffstat (limited to 'library/std')
-rw-r--r--library/std/Cargo.toml2
-rw-r--r--library/std/src/keyword_docs.rs2
-rw-r--r--library/std/src/os/windows/process.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/library/std/Cargo.toml b/library/std/Cargo.toml
index 0ec167c2d16..19fe0cdd7ae 100644
--- a/library/std/Cargo.toml
+++ b/library/std/Cargo.toml
@@ -6,7 +6,7 @@ version = "0.0.0"
 license = "MIT OR Apache-2.0"
 repository = "https://github.com/rust-lang/rust.git"
 description = "The Rust Standard Library"
-edition = "2021"
+edition = "2024"
 autobenches = false
 
 [lib]
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,