Skip to content

Commit 4c0c32c

Browse files
author
mejrs
committed
Fix tests
1 parent 262ff86 commit 4c0c32c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/rustc_errors/src/tests.rs

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ fn make_dummy(ftl: &'static str) -> Dummy {
2525
let resource = FluentResource::try_new(ftl.into()).expect("Failed to parse an FTL string.");
2626

2727
let langid_en = langid!("en-US");
28+
29+
#[cfg(parallel_compiler)]
30+
let mut bundle = FluentBundle::new_concurrent(vec![langid_en]);
31+
32+
#[cfg(not(parallel_compiler))]
2833
let mut bundle = FluentBundle::new(vec![langid_en]);
2934

3035
bundle.add_resource(resource).expect("Failed to add FTL resources to the bundle.");

0 commit comments

Comments
 (0)