diff options
| author | Elias Holzmann <9659253+EliasHolzmann@users.noreply.github.com> | 2024-03-03 03:36:37 +0100 |
|---|---|---|
| committer | Elias Holzmann <9659253+EliasHolzmann@users.noreply.github.com> | 2024-12-05 21:48:36 +0100 |
| commit | 245acf819df592f351e34fa5bb12acfbcf9d3823 (patch) | |
| tree | eeba01d6034adae452c725db5684d9a85b598805 | |
| parent | 2fc260802c113cdb8c63a9c2168194a22c57bf31 (diff) | |
| download | rust-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.rs | 12 |
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 |
