We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f337ae6 + 5f759a9 commit f53cd2bCopy full SHA for f53cd2b
clippy_lints/src/doc/needless_doctest_main.rs
@@ -42,9 +42,8 @@ pub fn check(
42
let mut test_attr_spans = vec![];
43
let filename = FileName::anon_source_code(&code);
44
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);
+ let translator = rustc_driver::default_translator();
+ let emitter = HumanEmitter::new(Box::new(io::sink()), translator);
48
let dcx = DiagCtxt::new(Box::new(emitter)).disable_warnings();
49
#[expect(clippy::arc_with_non_send_sync)] // `Arc` is expected by with_dcx
50
let sm = Arc::new(SourceMap::new(FilePathMapping::empty()));
0 commit comments