Rename many DiagCtxt and EarlyDiagCtxt locals.

This commit is contained in:
Nicholas Nethercote 2023-12-18 11:15:13 +11:00
parent ef315b3d7f
commit ca2472edd7

View File

@ -159,14 +159,14 @@ pub(crate) fn new(config: &Config) -> Result<ParseSess, ErrorKind> {
let source_map = Lrc::new(SourceMap::new(FilePathMapping::empty())); let source_map = Lrc::new(SourceMap::new(FilePathMapping::empty()));
let can_reset_errors = Lrc::new(AtomicBool::new(false)); let can_reset_errors = Lrc::new(AtomicBool::new(false));
let handler = default_dcx( let dcx = default_dcx(
Lrc::clone(&source_map), Lrc::clone(&source_map),
Lrc::clone(&ignore_path_set), Lrc::clone(&ignore_path_set),
Lrc::clone(&can_reset_errors), Lrc::clone(&can_reset_errors),
config.hide_parse_errors(), config.hide_parse_errors(),
config.color(), config.color(),
); );
let parse_sess = RawParseSess::with_dcx(handler, source_map); let parse_sess = RawParseSess::with_dcx(dcx, source_map);
Ok(ParseSess { Ok(ParseSess {
parse_sess, parse_sess,