diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2025-06-23 12:17:31 +0300 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2025-06-23 12:17:31 +0300 |
| commit | 3c4a690d018bebe98cf5ebfdfbf4388d131121c9 (patch) | |
| tree | 8ba69fe791545d69bd1d6fd93318b8bc76449a18 /compiler/rustc_errors/src/json | |
| parent | 3db7cffd54008792421a801e80701465c8977abd (diff) | |
| parent | 1052ddda964811c25823aa7285595f7085392b36 (diff) | |
| download | rust-3c4a690d018bebe98cf5ebfdfbf4388d131121c9.tar.gz rust-3c4a690d018bebe98cf5ebfdfbf4388d131121c9.zip | |
Merge from rust-lang/rust
Diffstat (limited to 'compiler/rustc_errors/src/json')
| -rw-r--r-- | compiler/rustc_errors/src/json/tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_errors/src/json/tests.rs b/compiler/rustc_errors/src/json/tests.rs index 40973e8e5d8..8cf81f467d8 100644 --- a/compiler/rustc_errors/src/json/tests.rs +++ b/compiler/rustc_errors/src/json/tests.rs @@ -41,14 +41,14 @@ fn test_positions(code: &str, span: (u32, u32), expected_output: SpanTestData) { rustc_span::create_default_session_globals_then(|| { let sm = Arc::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(vec![crate::DEFAULT_LOCALE_RESOURCE], false); + let translator = + Translator::with_fallback_bundle(vec![crate::DEFAULT_LOCALE_RESOURCE], false); let output = Arc::new(Mutex::new(Vec::new())); let je = JsonEmitter::new( Box::new(Shared { data: output.clone() }), Some(sm), - fallback_bundle, + translator, true, // pretty HumanReadableErrorType::Short, ColorConfig::Never, |
