]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Added newline to get more readable lexdump
authorKushal Pal <kushalpal109@gmail.com>
Sat, 30 Dec 2023 04:10:19 +0000 (09:40 +0530)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 30 Jan 2024 11:36:52 +0000 (12:36 +0100)
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 6fc336d97e0a875e9c9d555d2c95556d0547036a..bf6bf4c84466470a5bf2ed34517fc48ff4b124b3 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);