Skip to content

Commit

Permalink
Expand - Tweak format_args for 1.74
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Jan 6, 2024
1 parent cd4715d commit 733e87d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/expand/format_args.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,13 @@ namespace {
toks.push_back( TokenTree(TOK_SQUARE_CLOSE) );
}
// )
if( TARGETVER_LEAST_1_74 ) {
toks.push_back(TokenTree(TOK_COMMA));
// TODO: This is a lang item - `format_unsafe_arg`
push_path(toks, crate, {"fmt", "rt", "UnsafeArg", "new"});
toks.push_back( TokenTree(TOK_PAREN_OPEN) );
toks.push_back( TokenTree(TOK_PAREN_CLOSE) );
}
toks.push_back( TokenTree(TOK_PAREN_CLOSE) );
} // if(is_simple) else

Expand Down

0 comments on commit 733e87d

Please sign in to comment.