Skip to content

Commit f53cd2b

Browse files
committed
Auto merge of #142794 - tgross35:rollup-iae7okj, r=tgross35
Rollup of 9 pull requests Successful merges: - rust-lang/rust#142331 (Add `trim_prefix` and `trim_suffix` methods for both `slice` and `str` types.) - rust-lang/rust#142491 (Rework #[cold] attribute parser) - rust-lang/rust#142494 (Fix missing docs in `rustc_attr_parsing`) - rust-lang/rust#142495 (Better template for `#[repr]` attributes) - rust-lang/rust#142497 (Fix random failure when JS code is executed when the whole file was not read yet) - rust-lang/rust#142575 (Ensure copy* intrinsics also perform the static self-init checks) - rust-lang/rust#142650 (Refactor Translator) - rust-lang/rust#142713 (mbe: Refactor transcription) - rust-lang/rust#142755 (rustdoc: Remove `FormatRenderer::cache`) r? `@ghost` `@rustbot` modify labels: rollup
2 parents f337ae6 + 5f759a9 commit f53cd2b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clippy_lints/src/doc/needless_doctest_main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ pub fn check(
4242
let mut test_attr_spans = vec![];
4343
let filename = FileName::anon_source_code(&code);
4444

45-
let fallback_bundle =
46-
rustc_errors::fallback_fluent_bundle(rustc_driver::DEFAULT_LOCALE_RESOURCES.to_vec(), false);
47-
let emitter = HumanEmitter::new(Box::new(io::sink()), fallback_bundle);
45+
let translator = rustc_driver::default_translator();
46+
let emitter = HumanEmitter::new(Box::new(io::sink()), translator);
4847
let dcx = DiagCtxt::new(Box::new(emitter)).disable_warnings();
4948
#[expect(clippy::arc_with_non_send_sync)] // `Arc` is expected by with_dcx
5049
let sm = Arc::new(SourceMap::new(FilePathMapping::empty()));

0 commit comments

Comments
 (0)