aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKushal Pal <kushalpal109@gmail.com>2023-12-30 09:40:19 +0530
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2024-01-18 16:31:11 +0000
commit184da62a4d4dee67b8ba3ace66f5254e7ba70c54 (patch)
tree84c6ff744c49f4407bd9b790e9bd83fc20a06b68
parent43bb4971606dd08ca14ab61a0e232ea58c79e7fb (diff)
downloadgcc-184da62a4d4dee67b8ba3ace66f5254e7ba70c54.zip
gcc-184da62a4d4dee67b8ba3ace66f5254e7ba70c54.tar.gz
gcc-184da62a4d4dee67b8ba3ace66f5254e7ba70c54.tar.bz2
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 3069110..4309283 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);