Skip to content

Commit

Permalink
Removed unnecessary comments
Browse files Browse the repository at this point in the history
gcc/rust/ChangeLog:

	* expand/rust-macro-builtins.cc (MacroBuiltin::include_str_handler): Comment removed
	(MacroBuiltin::env_handler): Comment removed
	(MacroBuiltin::cfg_handler): Comment removed
	(MacroBuiltin::line_handler): Comment removed

Signed-off-by: Mohammed Rizan Farooqui <[email protected]>
  • Loading branch information
ZanF21 authored and CohenArthur committed Oct 5, 2023
1 parent 1908504 commit c7728c8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions gcc/rust/expand/rust-macro-builtins.cc
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@ MacroBuiltin::include_str_handler (location_t invoc_locus,
auto node = AST::SingleASTNode (make_string (invoc_locus, str));
auto str_tok = make_token (Token::make_string (invoc_locus, std::move (str)));

// FIXME: Do not return an empty token vector here
return AST::Fragment ({node}, std::move (str_tok));
}

Expand Down Expand Up @@ -785,7 +784,6 @@ MacroBuiltin::env_handler (location_t invoc_locus, AST::MacroInvocData &invoc)
auto tok
= make_token (Token::make_string (invoc_locus, std::move (env_value)));

// FIXME: Do not return an empty token vector here
return AST::Fragment ({node}, std::move (tok));
}

Expand Down Expand Up @@ -824,7 +822,6 @@ MacroBuiltin::cfg_handler (location_t invoc_locus, AST::MacroInvocData &invoc)
auto tok = make_token (
Token::make (result ? TRUE_LITERAL : FALSE_LITERAL, invoc_locus));

// FIXME: Do not return an empty token vector here
return AST::Fragment ({literal_exp}, std::move (tok));
}

Expand Down Expand Up @@ -912,7 +909,6 @@ MacroBuiltin::line_handler (location_t invoc_locus, AST::MacroInvocData &)
auto tok
= make_token (Token::make_int (invoc_locus, std::to_string (current_line)));

// FIXME: Do not return an empty token vector here
return AST::Fragment ({line_no}, std::move (tok));
}

Expand Down

0 comments on commit c7728c8

Please sign in to comment.