David Tolnay
7ddc89e893
Remove superfluous escaping from byte, byte str, and c str literals
2024-06-13 09:49:15 -07:00
David Tolnay
2cc0284905
Add more Literal::to_string tests
2024-06-13 09:39:29 -07:00
David Tolnay
57106e4a46
Rename proc_macro::Literal tests from parse.rs to literal.rs
...
This module contains tests not just of parse (FromStr) but also
to_string (Display) for literals.
2024-06-13 09:39:27 -07:00
Slanterns
fbc56dfac1
Stabilize Literal::c_string
2024-04-04 05:04:27 +08:00
Slanterns
61ac7812c6
Stabilize Literal::byte_character
2024-04-04 05:00:49 +08:00
许杰友 Jieyou Xu (Joe)
ec2cc761bc
[AUTO-GENERATED] Migrate ui tests from //
to //@
directives
2024-02-16 20:02:50 +00:00
novafacing
ee007ab187
proc_macro_c_str_literals: Implement Literal::c_string constructor
2024-01-16 13:27:58 -08:00
Emil Gardström
74f5261345
implement Literal::byte_character
...
without this, the only way to create a `LitKind::Byte` is by
doing `"b'a'".parse::<Literal>()`, this solves that by enabling
`Literal::byte_character(b'a')`
2023-09-23 23:29:47 +02:00
Jacob Pratt
8dc3b8559c
Fix tests
2023-06-20 19:40:26 -04:00
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00