Rename ParseSess::with_span_handler as ParseSess::with_dcx.

This commit is contained in:
Nicholas Nethercote 2023-12-18 07:52:43 +11:00
parent 7738d69007
commit cce3961f9a

View File

@ -166,7 +166,7 @@ pub(crate) fn new(config: &Config) -> Result<ParseSess, ErrorKind> {
config.hide_parse_errors(), config.hide_parse_errors(),
config.color(), config.color(),
); );
let parse_sess = RawParseSess::with_span_handler(handler, source_map); let parse_sess = RawParseSess::with_dcx(handler, source_map);
Ok(ParseSess { Ok(ParseSess {
parse_sess, parse_sess,