about summary refs log tree commit diff
diff options
context:
space:
mode:
authorElias Holzmann <9659253+EliasHolzmann@users.noreply.github.com>2024-03-03 03:36:37 +0100
committerElias Holzmann <9659253+EliasHolzmann@users.noreply.github.com>2024-12-05 21:48:36 +0100
commit245acf819df592f351e34fa5bb12acfbcf9d3823 (patch)
treeeeba01d6034adae452c725db5684d9a85b598805
parent2fc260802c113cdb8c63a9c2168194a22c57bf31 (diff)
downloadrust-245acf819df592f351e34fa5bb12acfbcf9d3823.tar.gz
rust-245acf819df592f351e34fa5bb12acfbcf9d3823.zip
Added better reason for exposing `flags` and `get_flags` as unstable
-rw-r--r--library/core/src/fmt/mod.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs
index ccad3748bbd..422d9b25183 100644
--- a/library/core/src/fmt/mod.rs
+++ b/library/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