Function rustc_errors::translation::to_fluent_args

source ยท
pub fn to_fluent_args<'iter>(
    iter: impl Iterator<Item = DiagArg<'iter>>,
) -> FluentArgs<'static>
Expand description

Convert diagnostic arguments (a rustc internal type that exists to implement Encodable/Decodable) into FluentArgs which is necessary to perform translation.

Typically performed once for each diagnostic at the start of emit_diagnostic and then passed around as a reference thereafter.