Skip to content

Commit

Permalink
Rename many DiagCtxt and EarlyDiagCtxt locals.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Dec 18, 2023
1 parent ef315b3 commit ca2472e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parse/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ impl ParseSess {
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,
Expand Down

0 comments on commit ca2472e

Please sign in to comment.