mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
![]() Provide a new function `listify`, meant to be used in cases similar to `pluralize!`. When you have a slice of arbitrary elements that need to be presented to the user, `listify` allows you to turn that into a list of comma separated strings. This reduces a lot of redundant logic that happens often in diagnostics. |
||
---|---|---|
.. | ||
json | ||
markdown | ||
annotate_snippet_emitter_writer.rs | ||
codes.rs | ||
diagnostic_impls.rs | ||
diagnostic.rs | ||
emitter.rs | ||
error.rs | ||
json.rs | ||
lib.rs | ||
lock.rs | ||
registry.rs | ||
snippet.rs | ||
styled_buffer.rs | ||
tests.rs | ||
translation.rs |