Crate rustc_error_messages
source ·Re-exports
pub use fluent_bundle;
Macros
Structs
- A workaround for “good path” ICEs when formatting types in disabled lints.
- A map of arguments passed from the code to the localization to be used for message formatting.
LanguageIdentifier
is a core struct representing a Unicode Language Identifier.- A collection of
Span
s. - A span together with some additional data.
Enums
- Abstraction over a message in a diagnostic to support both translatable and non-translatable diagnostic messages.
- Core error type for Fluent runtime system.
- The
FluentValue
enum represents values which can be formatted to a String. - Abstraction over a message in a subdiagnostic (i.e. label, note, help, etc) to support both translatable and non-translatable diagnostic messages.
Statics
- Raw content of Fluent resource for this crate, generated by
fluent_messages
macro, imported byrustc_driver
to include all crates’ resources in one bundle.
Traits
Functions
- Return the default
FluentBundle
with standard “en-US” diagnostic messages. - Returns Fluent bundle with the user’s locale resources from
$sysroot/share/locale/$requested_locale/*.ftl
.
Type Aliases
- FluentId 🔒Identifier for the Fluent message/attribute corresponding to a diagnostic message.
- Type alias for the result of
fallback_fluent_bundle
- a reference-counted pointer to a lazily evaluated fluent bundle.