]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #95968 - davidtwco:translation-lazy-fallback, r=oli-obk
authorbors <bors@rust-lang.org>
Wed, 13 Apr 2022 21:04:19 +0000 (21:04 +0000)
committerbors <bors@rust-lang.org>
Wed, 13 Apr 2022 21:04:19 +0000 (21:04 +0000)
errors: lazily load fallback fluent bundle

Addresses (hopefully) https://github.com/rust-lang/rust/pull/95667#issuecomment-1094794087.

Loading the fallback bundle in compilation sessions that won't go on to emit any errors unnecessarily degrades compile time performance, so lazily create the Fluent bundle when it is first required.

r? `@ghost` (just for perf initially)


Trivial merge