Skip to content

Commit 8b7f811

Browse files
committed
errors: generate typed identifiers in each crate
Instead of loading the Fluent resources for every crate in `rustc_error_messages`, each crate generates typed identifiers for its own diagnostics and creates a static which are pulled together in the `rustc_driver` crate and provided to the diagnostic emitter. Signed-off-by: David Wood <david.wood@huawei.com>
1 parent 01ed9dd commit 8b7f811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parse/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ fn default_handler(
124124
silent_emitter()
125125
} else {
126126
let fallback_bundle =
127-
rustc_errors::fallback_fluent_bundle(rustc_errors::DEFAULT_LOCALE_RESOURCES, false);
127+
rustc_errors::fallback_fluent_bundle(rustc_driver::DEFAULT_LOCALE_RESOURCES, false);
128128
Box::new(EmitterWriter::stderr(
129129
color_cfg,
130130
Some(source_map.clone()),

0 commit comments

Comments
 (0)