about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/json
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-02-26 18:13:57 +0100
committerRalf Jung <post@ralfj.de>2023-02-26 18:13:57 +0100
commitcb45103358c0fef99d7659e0949b3c65b3eabdd6 (patch)
treee430c91fb4e29070945f79df7a47639e5cf4f9b1 /compiler/rustc_errors/src/json
parent9fb185210eaa9d2de7e8ab1161897edf2eaae758 (diff)
parentc4e0cd966062ca67daed20775f4e8a60c28e57df (diff)
downloadrust-cb45103358c0fef99d7659e0949b3c65b3eabdd6.tar.gz
rust-cb45103358c0fef99d7659e0949b3c65b3eabdd6.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_errors/src/json')
-rw-r--r--compiler/rustc_errors/src/json/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/json/tests.rs b/compiler/rustc_errors/src/json/tests.rs
index f161532d3b7..671dc449eaa 100644
--- a/compiler/rustc_errors/src/json/tests.rs
+++ b/compiler/rustc_errors/src/json/tests.rs
@@ -46,7 +46,7 @@ fn test_positions(code: &str, span: (u32, u32), expected_output: SpanTestData) {
         let sm = Lrc::new(SourceMap::new(FilePathMapping::empty()));
         sm.new_source_file(Path::new("test.rs").to_owned().into(), code.to_owned());
         let fallback_bundle =
-            crate::fallback_fluent_bundle(rustc_error_messages::DEFAULT_LOCALE_RESOURCES, false);
+            crate::fallback_fluent_bundle(vec![crate::DEFAULT_LOCALE_RESOURCE], false);
 
         let output = Arc::new(Mutex::new(Vec::new()));
         let je = JsonEmitter::new(