diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 07:52:43 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 16:06:21 +1100 |
| commit | d1d0896c401e3d07e14ed7a339a766bd0da71bd2 (patch) | |
| tree | 5433f7f9463fe88a7793077704bc3ae5856aa8cf /src/tools/clippy/clippy_lints | |
| parent | 73bac456d413378b25210731c64eccc52c2201f7 (diff) | |
| download | rust-d1d0896c401e3d07e14ed7a339a766bd0da71bd2.tar.gz rust-d1d0896c401e3d07e14ed7a339a766bd0da71bd2.zip | |
Rename `ParseSess::with_span_handler` as `ParseSess::with_dcx`.
Diffstat (limited to 'src/tools/clippy/clippy_lints')
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/doc/needless_doctest_main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/clippy_lints/src/doc/needless_doctest_main.rs b/src/tools/clippy/clippy_lints/src/doc/needless_doctest_main.rs index ccd6f22146b..b2ac39a8e9f 100644 --- a/src/tools/clippy/clippy_lints/src/doc/needless_doctest_main.rs +++ b/src/tools/clippy/clippy_lints/src/doc/needless_doctest_main.rs @@ -46,9 +46,9 @@ pub fn check( rustc_errors::fallback_fluent_bundle(rustc_driver::DEFAULT_LOCALE_RESOURCES.to_vec(), false); let emitter = EmitterWriter::new(Box::new(io::sink()), fallback_bundle); let handler = DiagCtxt::with_emitter(Box::new(emitter)).disable_warnings(); - #[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 let sm = Lrc::new(SourceMap::new(FilePathMapping::empty())); - let sess = ParseSess::with_span_handler(handler, sm); + let sess = ParseSess::with_dcx(handler, sm); let mut parser = match maybe_new_parser_from_source_str(&sess, filename, code) { Ok(p) => p, |
