Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mejrs committed Jan 8, 2023
1 parent 262ff86 commit 4c0c32c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/rustc_errors/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ fn make_dummy(ftl: &'static str) -> Dummy {
let resource = FluentResource::try_new(ftl.into()).expect("Failed to parse an FTL string.");

let langid_en = langid!("en-US");

#[cfg(parallel_compiler)]
let mut bundle = FluentBundle::new_concurrent(vec![langid_en]);

#[cfg(not(parallel_compiler))]
let mut bundle = FluentBundle::new(vec![langid_en]);

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

0 comments on commit 4c0c32c

Please sign in to comment.