about summary refs log tree commit diff
path: root/compiler/rustc_ast
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2025-02-12 16:59:13 +0100
committerMara Bos <m-ou.se@m-ou.se>2025-03-10 12:20:05 +0100
commitfb9ce0297682a0c54fe374800c2a41cc666d9580 (patch)
tree3823aad2927922171871ea611d922bb2d8610636 /compiler/rustc_ast
parent2c6a12ec44d0426c8939123c2f2cf27d2217de13 (diff)
Limit formatting width and precision to 16 bits.
Diffstat (limited to 'compiler/rustc_ast')
-rw-r--r--compiler/rustc_ast/src/format.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/format.rs b/compiler/rustc_ast/src/format.rs
index b93846c1fe6..b611ddea1d9 100644
--- a/compiler/rustc_ast/src/format.rs
+++ b/compiler/rustc_ast/src/format.rs
@@ -266,7 +266,7 @@ pub enum FormatAlignment {
 #[derive(Clone, Encodable, Decodable, Debug, PartialEq, Eq)]
 pub enum FormatCount {
     /// `{:5}` or `{:.5}`
-    Literal(usize),
+    Literal(u16),
     /// `{:.*}`, `{:.5$}`, or `{:a$}`, etc.
     Argument(FormatArgPosition),
 }