about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-02-02 12:31:57 +0100
committerGitHub <noreply@github.com>2025-02-02 12:31:57 +0100
commit3559a48b8ee156351663da26ee39058e20d7837d (patch)
treebc84e5944ec2541cc8ed81f914c1c6c83270590a /compiler/rustc_codegen_llvm/src/errors.rs
parentce5db2f9f18161fa0cb78b78ccd110a6652fdedb (diff)
parent8e9422f94e6717721ffbad50862fcef9822c2537 (diff)
downloadrust-3559a48b8ee156351663da26ee39058e20d7837d.tar.gz
rust-3559a48b8ee156351663da26ee39058e20d7837d.zip
Rollup merge of #136368 - estebank:listify, r=fee1-dead
Make comma separated lists of anything easier to make for errors

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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions