From d28905ff422f721517bb6be3acb079ec24e4babb Mon Sep 17 00:00:00 2001 From: Elias Holzmann <9659253+EliasHolzmann@users.noreply.github.com> Date: Sun, 3 Mar 2024 03:36:37 +0100 Subject: [PATCH] Added better reason for exposing `flags` and `get_flags` as unstable --- core/src/fmt/mod.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/core/src/fmt/mod.rs b/core/src/fmt/mod.rs index ccad3748bbd12..422d9b25183d9 100644 --- a/core/src/fmt/mod.rs +++ b/core/src/fmt/mod.rs @@ -484,13 +484,21 @@ impl FormattingOptions { } #[doc(hidden)] - #[unstable(feature = "fmt_internals", reason = "internal to standard library", issue = "none")] + #[unstable( + feature = "fmt_internals", + reason = "internal routines only exposed for testing", + issue = "none" + )] /// Flags for formatting pub fn flags(&mut self, flags: u32) { self.flags = flags } #[doc(hidden)] - #[unstable(feature = "fmt_internals", reason = "internal to standard library", issue = "none")] + #[unstable( + feature = "fmt_internals", + reason = "internal routines only exposed for testing", + issue = "none" + )] /// Flags for formatting pub fn get_flags(&self) -> u32 { self.flags