aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKushal Pal <kushalpal109@gmail.com>2023-12-30 09:40:19 +0530
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-30 12:36:52 +0100
commitadb62fe2b46c3e60b8fcf4a40845ed919ca636e2 (patch)
tree7e67b9043ef13ed4850b3ccd3177852441498289
parent1460044f87ef6801d5c17cf94a9a87282bff9464 (diff)
downloadgcc-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>
-rw-r--r--gcc/rust/lex/rust-lex.cc2
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);