https://gcc.gnu.org/g:184da62a4d4dee67b8ba3ace66f5254e7ba70c54

commit 184da62a4d4dee67b8ba3ace66f5254e7ba70c54
Author: Kushal Pal <kushalpal...@gmail.com>
Date:   Sat Dec 30 09:40:19 2023 +0530

    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 <kushalpal...@gmail.com>

Diff:
---
 gcc/rust/lex/rust-lex.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/rust/lex/rust-lex.cc b/gcc/rust/lex/rust-lex.cc
index 30691109d2a2..430928310a27 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);

Reply via email to