diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2025-03-21 16:51:14 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2025-03-21 17:05:56 +0100 |
| commit | 9b7060ad3123eb21e7d93b59e2a21482afe36b6c (patch) | |
| tree | ed2e56e24c645b9d61ed7818928f3018a8c0967f | |
| parent | ba2809e08574c608b6b2cd146649af83d7c354ed (diff) | |
| download | rust-9b7060ad3123eb21e7d93b59e2a21482afe36b6c.tar.gz rust-9b7060ad3123eb21e7d93b59e2a21482afe36b6c.zip | |
Add todo comment on using a niche type for fmt flags.
| -rw-r--r-- | library/core/src/fmt/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs index e4642470008..54c84b07d06 100644 --- a/library/core/src/fmt/mod.rs +++ b/library/core/src/fmt/mod.rs @@ -299,6 +299,8 @@ pub struct FormattingOptions { /// a &str size when stored in (the upper bits of) the same field. /// (fmt::Arguments will make use of this property in the future.) /// ``` + // Note: This could use a special niche type with range 0x8000_0000..=0xfdd0ffff. + // It's unclear if that's useful, though. flags: u32, /// Width if width flag (bit 27) above is set. Otherwise, always 0. width: u16, |
