@@ -1052,23 +1052,7 @@ MacroBuiltin::format_args_handler (location_t invoc_locus,
1052
1052
{
1053
1053
auto input = format_args_parse_arguments (invoc);
1054
1054
1055
- // auto fmt_arg
1056
- // // FIXME: this eneds to be split up into a smaller function
1057
- // = parse_single_string_literal (append_newline ?
1058
- // BuiltinMacro::FormatArgsNl
1059
- // : BuiltinMacro::FormatArgs,
1060
- // invoc.get_delim_tok_tree (), invoc_locus,
1061
- // invoc.get_expander ());
1062
-
1063
- // if (!fmt_arg->is_literal ())
1064
- // {
1065
- // rust_sorry_at (
1066
- // invoc_locus,
1067
- // "cannot yet use eager macro invocations as format strings");
1068
- // return AST::Fragment::create_empty ();
1069
- // }
1070
-
1071
- // FIXME: We need to handle this
1055
+ // TODO(Arthur): We need to handle this
1072
1056
// // if it is not a literal, it's an eager macro invocation - return it
1073
1057
// if (!fmt_expr->is_literal ())
1074
1058
// {
@@ -1077,10 +1061,10 @@ MacroBuiltin::format_args_handler (location_t invoc_locus,
1077
1061
// token_tree.to_token_stream ());
1078
1062
// }
1079
1063
1080
- // auto fmt_str = static_cast<AST::LiteralExpr &> (*fmt_arg.get ());
1081
-
1082
- // Switch on the format string to know if the string is raw or cooked
1083
- // switch (fmt_str.get_lit_type ())
1064
+ // TODO(Arthur): Handle this as well - raw strings are special for the
1065
+ // format_args parser auto fmt_str = static_cast<AST::LiteralExpr &>
1066
+ // (*fmt_arg.get ()); Switch on the format string to know if the string is raw
1067
+ // or cooked switch (fmt_str.get_lit_type ())
1084
1068
// {
1085
1069
// // case AST::Literal::RAW_STRING:
1086
1070
// case AST::Literal::STRING:
0 commit comments