@@ -22,15 +22,9 @@ use std::fs;
22
22
use std:: io;
23
23
use std:: path:: { Path , PathBuf } ;
24
24
25
- #[ cfg( not( parallel_compiler) ) ]
26
- use std:: cell:: LazyCell as Lazy ;
27
- #[ cfg( parallel_compiler) ]
28
25
use std:: sync:: LazyLock as Lazy ;
29
26
30
- #[ cfg( parallel_compiler) ]
31
27
use intl_memoizer:: concurrent:: IntlLangMemoizer ;
32
- #[ cfg( not( parallel_compiler) ) ]
33
- use intl_memoizer:: IntlLangMemoizer ;
34
28
35
29
pub use fluent_bundle:: { self , types:: FluentType , FluentArgs , FluentError , FluentValue } ;
36
30
pub use unic_langid:: { langid, LanguageIdentifier } ;
@@ -39,16 +33,10 @@ fluent_messages! { "../messages.ftl" }
39
33
40
34
pub type FluentBundle = fluent_bundle:: bundle:: FluentBundle < FluentResource , IntlLangMemoizer > ;
41
35
42
- #[ cfg( parallel_compiler) ]
43
36
fn new_bundle ( locales : Vec < LanguageIdentifier > ) -> FluentBundle {
44
37
FluentBundle :: new_concurrent ( locales)
45
38
}
46
39
47
- #[ cfg( not( parallel_compiler) ) ]
48
- fn new_bundle ( locales : Vec < LanguageIdentifier > ) -> FluentBundle {
49
- FluentBundle :: new ( locales)
50
- }
51
-
52
40
#[ derive( Debug ) ]
53
41
pub enum TranslationBundleError {
54
42
/// Failed to read from `.ftl` file.
@@ -547,15 +535,6 @@ pub fn fluent_value_from_str_list_sep_by_and(l: Vec<Cow<'_, str>>) -> FluentValu
547
535
Cow :: Owned ( result)
548
536
}
549
537
550
- #[ cfg( not( parallel_compiler) ) ]
551
- fn as_string_threadsafe (
552
- & self ,
553
- _intls : & intl_memoizer:: concurrent:: IntlLangMemoizer ,
554
- ) -> Cow < ' static , str > {
555
- unreachable ! ( "`as_string_threadsafe` is not used in non-parallel rustc" )
556
- }
557
-
558
- #[ cfg( parallel_compiler) ]
559
538
fn as_string_threadsafe (
560
539
& self ,
561
540
intls : & intl_memoizer:: concurrent:: IntlLangMemoizer ,
0 commit comments