Skip to content

Commit

Permalink
Added newline to get more readable lexdump
Browse files Browse the repository at this point in the history
Fixes Rust-GCC#2783

gcc/rust/ChangeLog:

	* lex/rust-lex.cc (Lexer::dump_and_skip):
	Changed " " to '\n'

Signed-off-by: Kushal Pal <[email protected]>
  • Loading branch information
braw-lee authored and P-E-P committed Jan 18, 2024
1 parent 43bb497 commit 184da62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcc/rust/lex/rust-lex.cc
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ Lexer::dump_and_skip (int n)
+ std::string (tok->get_type_hint_str ()))
: "")
<< " ";
out << Linemap::location_to_string (loc) << " ";
out << Linemap::location_to_string (loc) << '\n';
}

token_queue.skip (0);
Expand Down

0 comments on commit 184da62

Please sign in to comment.