Repository navigation
Conversation
This comment has been minimized.
This comment has been minimized.
|
^ it's picking up New @rfcbot merge libs |
|
@tgross35 has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! cc @rust-lang/libs-ping: FCP proposed for libs, please feel free to register concerns. |
On nightly you can just grab the options with I'm not necessarily opposed to adding the impl, we generally add Debug impls even if they seem pointless because any public type could end up in a larger type someone wants to debug-print. But it seems like the main change here (better |
f6e9776 to
28414c3
Compare
This comment has been minimized.
This comment has been minimized.
|
Agreed that just using |
This is a public type that doesn't currently have a debug implementation, but that would be helpful for peeking at format specifiers. Using `.options()` may be nicer for this usecase once it is stable, but it does not hurt to have an implementation anyway; thus, add one here. As this is a new trait implementation, it is inst-stable under a new `formatter_debug` feature.
28414c3 to
25a0b91
Compare
|
My only apprehension is a worry that people might start accidentally swapping the formatter with other arguments when writing debug impls. But that feels like… not really a big concern, since the formatter will be required to make those things work, and the mutable reference means multiple concurrent borrows would be detected. Speaking of which… outside |
Not easily :) if you want it written back to itself within an impl, you pretty much need to Once |
This is a public type that doesn't currently have a debug implementation, but that would be helpful for peeking at format specifiers. Add one that shows specifiers via
FormattingOptions.As this is a new trait implementation, it is inst-stable under a new
formatter_debugfeature.This makes the most sense with #166259.