From 2a6a70606d3d87484d468d60e3e351c2a9ab6819 Mon Sep 17 00:00:00 2001 From: Lukas Markeffsky <@> Date: Fri, 1 Nov 2024 22:08:23 +0100 Subject: fix some stability annotations --- library/std/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/std/src') diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index 1de52eb7b21..d0dd991a933 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -481,7 +481,7 @@ pub mod prelude; #[stable(feature = "rust1", since = "1.0.0")] pub use core::any; -#[stable(feature = "core_array", since = "1.36.0")] +#[stable(feature = "core_array", since = "1.35.0")] pub use core::array; #[unstable(feature = "async_iterator", issue = "79024")] pub use core::async_iter; -- cgit 1.4.1-3-g733a5 From 1acb1043fe68e0ff176e649048cdccc0b4cbd0e3 Mon Sep 17 00:00:00 2001 From: Houtamelo <88971943+Houtamelo@users.noreply.github.com> Date: Sat, 2 Nov 2024 04:02:32 -0300 Subject: Fix type reference in documents which was being confused with html tags. --- library/std/src/sys/pal/windows/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/std/src') diff --git a/library/std/src/sys/pal/windows/mod.rs b/library/std/src/sys/pal/windows/mod.rs index a9886012e8e..aca69490d7a 100644 --- a/library/std/src/sys/pal/windows/mod.rs +++ b/library/std/src/sys/pal/windows/mod.rs @@ -38,7 +38,7 @@ cfg_if::cfg_if! { } } -/// Map a Result to io::Result. +/// Map a [`Result`] to [`io::Result`](crate::io::Result). trait IoResult { fn io_result(self) -> crate::io::Result; } -- cgit 1.4.1-3-g733a5 From 102fac7af6152653823586e1666d9322e6ca7eae Mon Sep 17 00:00:00 2001 From: Houtamelo <88971943+Houtamelo@users.noreply.github.com> Date: Sat, 2 Nov 2024 04:09:17 -0300 Subject: Remove unintended link Since `#[link_section]` is enclosed in braces, it was being confused with a link during docs compilation. --- library/std/src/sys/thread_local/guard/windows.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/std/src') diff --git a/library/std/src/sys/thread_local/guard/windows.rs b/library/std/src/sys/thread_local/guard/windows.rs index 7ee8e695c75..1752b0e1208 100644 --- a/library/std/src/sys/thread_local/guard/windows.rs +++ b/library/std/src/sys/thread_local/guard/windows.rs @@ -26,7 +26,7 @@ //! This apparently translates to any callbacks in the ".CRT$XLB" section //! being run on certain events. //! -//! So after all that, we use the compiler's #[link_section] feature to place +//! So after all that, we use the compiler's `#[link_section]` feature to place //! a callback pointer into the magic section so it ends up being called. //! //! # What's up with this callback? -- cgit 1.4.1-3-g733a5