]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Added newline to get more readable lexdump
authorKushal Pal <kushalpal109@gmail.com>
Sat, 30 Dec 2023 04:10:19 +0000 (09:40 +0530)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Thu, 18 Jan 2024 16:31:11 +0000 (16:31 +0000)
Fixes #2783

gcc/rust/ChangeLog:

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

Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
gcc/rust/lex/rust-lex.cc

index 30691109d2a22bbaa8abb282d738053685f4f7af..430928310a2750a700cb7985009eeac0bee06a3f 100644 (file)
@@ -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);