diff options
author | David Wood <david.wood@huawei.com> | 2022-10-17 14:11:26 +0100 |
---|---|---|
committer | David Wood <david.wood@huawei.com> | 2023-02-22 09:15:54 +0000 |
commit | 26255186e2e94e0fe62cfd0965662494b6aab27c (patch) | |
tree | 0f067abfaeeada0568afcf197354b77720efd87c /compiler/rustc_error_messages | |
parent | a8e37507f4815c789a6fcb204f209806a4c3952d (diff) | |
download | rust-26255186e2e94e0fe62cfd0965662494b6aab27c.tar.gz |
various: translation resources from cg backend
Extend `CodegenBackend` trait with a function returning the translation
resources from the codegen backend, which can be added to the complete
list of resources provided to the emitter.
Signed-off-by: David Wood <david.wood@huawei.com>
Diffstat (limited to 'compiler/rustc_error_messages')
-rw-r--r-- | compiler/rustc_error_messages/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_error_messages/src/lib.rs b/compiler/rustc_error_messages/src/lib.rs index 13952f8456e..40ed10e7165 100644 --- a/compiler/rustc_error_messages/src/lib.rs +++ b/compiler/rustc_error_messages/src/lib.rs @@ -223,7 +223,7 @@ pub type LazyFallbackBundle = Lrc<Lazy<FluentBundle, impl FnOnce() -> FluentBund /// Return the default `FluentBundle` with standard "en-US" diagnostic messages. #[instrument(level = "trace")] pub fn fallback_fluent_bundle( - resources: &'static [&'static str], + resources: Vec<&'static str>, with_directionality_markers: bool, ) -> LazyFallbackBundle { Lrc::new(Lazy::new(move || { |