about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-12-06 12:02:56 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-12-06 12:02:56 +0000
commit78060cb6de9aba3be1dc5c883cf54eb98a084e22 (patch)
treed469f96906befc6dcdedbe2e71806dd71ff5f092 /compiler/rustc_builtin_macros/src
parentc5351ad4dcd9f3d73241b2acbfc6b4631da845c5 (diff)
downloadrust-78060cb6de9aba3be1dc5c883cf54eb98a084e22.tar.gz
rust-78060cb6de9aba3be1dc5c883cf54eb98a084e22.zip
Box `rustc_parse_format::Piece::NextArgument`
This makes both variants closer together in size (previously they were
different by 208 bytes -- 16 vs 224). This may make things worse, but
it's worth a try.
Diffstat (limited to 'compiler/rustc_builtin_macros/src')
-rw-r--r--compiler/rustc_builtin_macros/src/format.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/format.rs b/compiler/rustc_builtin_macros/src/format.rs
index 8b07c110663..63bc0d552c1 100644
--- a/compiler/rustc_builtin_macros/src/format.rs
+++ b/compiler/rustc_builtin_macros/src/format.rs
@@ -333,7 +333,7 @@ pub fn make_format_args(
             parse::Piece::String(s) => {
                 unfinished_literal.push_str(s);
             }
-            parse::Piece::NextArgument(parse::Argument { position, position_span, format }) => {
+            parse::Piece::NextArgument(box parse::Argument { position, position_span, format }) => {
                 if !unfinished_literal.is_empty() {
                     template.push(FormatArgsPiece::Literal(Symbol::intern(&unfinished_literal)));
                     unfinished_literal.clear();