about summary refs log tree commit diff
path: root/compiler/rustc_session/src/parse.rs
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-02-02 15:36:28 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-02-02 16:06:43 +0000
commit6556147d15f077dfc88dae22f3983b3598bce465 (patch)
tree0ca8b89e687a856423d336ff1c7b41141bc1e216 /compiler/rustc_session/src/parse.rs
parentaa2b870bb59a1eb6af3ee35567291a0f8c8a2828 (diff)
downloadrust-6556147d15f077dfc88dae22f3983b3598bce465.tar.gz
rust-6556147d15f077dfc88dae22f3983b3598bce465.zip
Use fallback fluent bundle from inner emitter in SilentEmitter
Diffstat (limited to 'compiler/rustc_session/src/parse.rs')
-rw-r--r--compiler/rustc_session/src/parse.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/rustc_session/src/parse.rs b/compiler/rustc_session/src/parse.rs
index 0c8040944fb..b6b13a715ec 100644
--- a/compiler/rustc_session/src/parse.rs
+++ b/compiler/rustc_session/src/parse.rs
@@ -277,12 +277,9 @@ impl ParseSess {
     ) -> Self {
         let fallback_bundle = fallback_fluent_bundle(locale_resources, false);
         let sm = Lrc::new(SourceMap::new(FilePathMapping::empty()));
-        let fatal_emitter = Box::new(HumanEmitter::new(
-            stderr_destination(ColorConfig::Auto),
-            Lrc::clone(&fallback_bundle),
-        ));
+        let fatal_emitter =
+            Box::new(HumanEmitter::new(stderr_destination(ColorConfig::Auto), fallback_bundle));
         let dcx = DiagCtxt::new(Box::new(SilentEmitter {
-            fallback_bundle,
             fatal_emitter,
             fatal_note: Some(fatal_note),
             emit_fatal_diagnostic,