Skip to content

Commit 386ea37

Browse files
committed
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>
1 parent 8b7f811 commit 386ea37

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/parse/session.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,10 @@ fn default_handler(
123123
let emitter = if hide_parse_errors {
124124
silent_emitter()
125125
} else {
126-
let fallback_bundle =
127-
rustc_errors::fallback_fluent_bundle(rustc_driver::DEFAULT_LOCALE_RESOURCES, false);
126+
let fallback_bundle = rustc_errors::fallback_fluent_bundle(
127+
rustc_driver::DEFAULT_LOCALE_RESOURCES.to_vec(),
128+
false,
129+
);
128130
Box::new(EmitterWriter::stderr(
129131
color_cfg,
130132
Some(source_map.clone()),

0 commit comments

Comments
 (0)