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.
ParseSess::with_span_handler
ParseSess::with_dcx
1 parent 42729d6 commit bc3a3bcCopy full SHA for bc3a3bc
clippy_lints/src/doc/needless_doctest_main.rs
@@ -46,9 +46,9 @@ pub fn check(
46
rustc_errors::fallback_fluent_bundle(rustc_driver::DEFAULT_LOCALE_RESOURCES.to_vec(), false);
47
let emitter = EmitterWriter::new(Box::new(io::sink()), fallback_bundle);
48
let handler = DiagCtxt::with_emitter(Box::new(emitter)).disable_warnings();
49
- #[expect(clippy::arc_with_non_send_sync)] // `Lrc` is expected by with_span_handler
+ #[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_span_handler(handler, sm);
+ let sess = ParseSess::with_dcx(handler, sm);
52
53
let mut parser = match maybe_new_parser_from_source_str(&sess, filename, code) {
54
Ok(p) => p,
0 commit comments