From: Kushal Pal Date: Sat, 30 Dec 2023 04:10:19 +0000 (+0530) Subject: gccrs: Added newline to get more readable lexdump X-Git-Tag: basepoints/gcc-15~1521 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=adb62fe2b46c3e60b8fcf4a40845ed919ca636e2;p=thirdparty%2Fgcc.git gccrs: Added newline to get more readable lexdump Fixes #2783 gcc/rust/ChangeLog: * lex/rust-lex.cc (Lexer::dump_and_skip): Changed " " to '\n' Signed-off-by: Kushal Pal --- diff --git a/gcc/rust/lex/rust-lex.cc b/gcc/rust/lex/rust-lex.cc index 6fc336d97e0a..bf6bf4c84466 100644 --- a/gcc/rust/lex/rust-lex.cc +++ b/gcc/rust/lex/rust-lex.cc @@ -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);