We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DiagCtxt::with_emitter
DiagCtxt::new
1 parent e3b8b52 commit 81100bdCopy full SHA for 81100bd
clippy_lints/src/doc/needless_doctest_main.rs
@@ -45,7 +45,7 @@ pub fn check(
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);
48
- let dcx = DiagCtxt::with_emitter(Box::new(emitter)).disable_warnings();
+ let dcx = DiagCtxt::new(Box::new(emitter)).disable_warnings();
49
#[expect(clippy::arc_with_non_send_sync)] // `Lrc` is expected by with_dcx
50
let sm = Lrc::new(SourceMap::new(FilePathMapping::empty()));
51
let sess = ParseSess::with_dcx(dcx, sm);
0 commit comments