-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Don't discourage people from using std::fmt::Write #76729
Copy link
Copy link
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-fmtArea: `core::fmt`Area: `core::fmt`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-fmtArea: `core::fmt`Area: `core::fmt`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
The docs for
std::fmt::Writediscourage using it outside of the standard library:Yet it is relatively often that one needs a trait for writing Unicode to a stream. For example,
pulldown-cmarkhas a trait very similar to this one calledStrWrite.When I asked in Zulip, nobody seemed to know why that comment is there.
It would be good to have a standard that every library can use for this.
@rustbot modify labels: A-fmt T-libs T-doc