diff options
| author | mejrs <> | 2023-01-09 00:23:27 +0100 |
|---|---|---|
| committer | mejrs <> | 2023-01-09 00:23:27 +0100 |
| commit | 4c0c32c895df28b762a61958b21cbe4d68f60238 (patch) | |
| tree | 9d5df61984058fc6a5a8e4e79d50918b89ff18ba /compiler/rustc_errors/src | |
| parent | 262ff86138730c1eb65f3ec39dd9c93222ed77e7 (diff) | |
| download | rust-4c0c32c895df28b762a61958b21cbe4d68f60238.tar.gz rust-4c0c32c895df28b762a61958b21cbe4d68f60238.zip | |
Fix tests
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/tests.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/tests.rs b/compiler/rustc_errors/src/tests.rs index 47220b59bd4..52103e46097 100644 --- a/compiler/rustc_errors/src/tests.rs +++ b/compiler/rustc_errors/src/tests.rs @@ -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."); |
