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.
This commit is contained in:
parent
c5351ad4dc
commit
78060cb6de
3 changed files with 44 additions and 44 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue