-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-prettyArea: Pretty printing (including `-Z unpretty`)Area: Pretty printing (including `-Z unpretty`)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
E.g. printing ty::Slice(ty)
uses:
p!(write("["), print(ty), write("]"))
but we could allow writing it like this, by letting the macro use $...:literal
:
p!("[", print(ty), "]")
But I'm not sure the macro can handle it easily.
Maybe we should just have Print
implemented for more types and just make p!(a, b, c)
print a
, b
and c
(and we can then rename it to print!
).
This issue has been assigned to @jakevossen5 via this comment.
estebank
Metadata
Metadata
Assignees
Labels
A-prettyArea: Pretty printing (including `-Z unpretty`)Area: Pretty printing (including `-Z unpretty`)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.