diff options
author | Kushal Pal <kushalpal109@gmail.com> | 2023-12-30 09:40:19 +0530 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-30 12:36:52 +0100 |
commit | adb62fe2b46c3e60b8fcf4a40845ed919ca636e2 (patch) | |
tree | 7e67b9043ef13ed4850b3ccd3177852441498289 /gcc | |
parent | 1460044f87ef6801d5c17cf94a9a87282bff9464 (diff) | |
download | gcc-adb62fe2b46c3e60b8fcf4a40845ed919ca636e2.zip gcc-adb62fe2b46c3e60b8fcf4a40845ed919ca636e2.tar.gz gcc-adb62fe2b46c3e60b8fcf4a40845ed919ca636e2.tar.bz2 |
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 <kushalpal109@gmail.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/lex/rust-lex.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/lex/rust-lex.cc b/gcc/rust/lex/rust-lex.cc index 6fc336d..bf6bf4c 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); |