File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ pub fn check(
46
46
rustc_errors:: fallback_fluent_bundle ( rustc_driver:: DEFAULT_LOCALE_RESOURCES . to_vec ( ) , false ) ;
47
47
let emitter = EmitterWriter :: new ( Box :: new ( io:: sink ( ) ) , fallback_bundle) ;
48
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
49
+ #[ expect( clippy:: arc_with_non_send_sync) ] // `Lrc` is expected by with_dcx
50
50
let sm = Lrc :: new ( SourceMap :: new ( FilePathMapping :: empty ( ) ) ) ;
51
- let sess = ParseSess :: with_span_handler ( handler, sm) ;
51
+ let sess = ParseSess :: with_dcx ( handler, sm) ;
52
52
53
53
let mut parser = match maybe_new_parser_from_source_str ( & sess, filename, code) {
54
54
Ok ( p) => p,
You can’t perform that action at this time.
0 commit comments