]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: token: Add type hints to string dump
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 27 Mar 2023 13:41:47 +0000 (15:41 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:28:42 +0000 (18:28 +0100)
commit7adb5516b5825816ff1883c23d1ee33982043fcc
treed2ec5f08b705d35f367386cff36312cbac594bd4
parentecbbfce5c566526b0e1eab5c9b9b1676c7dc450f
gccrs: token: Add type hints to string dump

The conversion to string of any known type literal was not giving back
any type hint, not even quotes for string. This commit fix this.

gcc/rust/ChangeLog:

* lex/rust-token.cc (Token::as_string): Add type hint output.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/lex/rust-token.cc