diff --git a/src/parse/session.rs b/src/parse/session.rs index 4d1e141ea45..e8f7b422ada 100644 --- a/src/parse/session.rs +++ b/src/parse/session.rs @@ -159,14 +159,14 @@ pub(crate) fn new(config: &Config) -> Result { let source_map = Lrc::new(SourceMap::new(FilePathMapping::empty())); let can_reset_errors = Lrc::new(AtomicBool::new(false)); - let handler = default_dcx( + let dcx = default_dcx( Lrc::clone(&source_map), Lrc::clone(&ignore_path_set), Lrc::clone(&can_reset_errors), config.hide_parse_errors(), config.color(), ); - let parse_sess = RawParseSess::with_dcx(handler, source_map); + let parse_sess = RawParseSess::with_dcx(dcx, source_map); Ok(ParseSess { parse_sess,