diff options
| author | Laurențiu Nicola <lnicola@users.noreply.github.com> | 2025-06-23 09:44:54 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-23 09:44:54 +0000 |
| commit | 4b375346156015e998c621eb851292928dfdce73 (patch) | |
| tree | 8ba69fe791545d69bd1d6fd93318b8bc76449a18 /compiler/rustc_errors/src/json | |
| parent | 9a0434ec195f6cbe3b84fd6d6275f142414f41f7 (diff) | |
| parent | 3c4a690d018bebe98cf5ebfdfbf4388d131121c9 (diff) | |
| download | rust-4b375346156015e998c621eb851292928dfdce73.tar.gz rust-4b375346156015e998c621eb851292928dfdce73.zip | |
Merge pull request #20063 from lnicola/sync-from-rust
minor: sync from downstream
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, |
