ty::print::pretty's p! macro should support string literals. #70948
Labels
A-pretty
Area: Pretty printing (including `-Z unpretty`)
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
E.g. printing
ty::Slice(ty)
uses:but we could allow writing it like this, by letting the macro use
$...:literal
:But I'm not sure the macro can handle it easily.
Maybe we should just have
Print
implemented for more types and just makep!(a, b, c)
printa
,b
andc
(and we can then rename it toprint!
).This issue has been assigned to @jakevossen5 via this comment.
The text was updated successfully, but these errors were encountered: