diff --git a/src/parse/session.rs b/src/parse/session.rs index 102ec231776..82e54b46f15 100644 --- a/src/parse/session.rs +++ b/src/parse/session.rs @@ -166,7 +166,7 @@ pub(crate) fn new(config: &Config) -> Result { config.hide_parse_errors(), config.color(), ); - let parse_sess = RawParseSess::with_span_handler(handler, source_map); + let parse_sess = RawParseSess::with_dcx(handler, source_map); Ok(ParseSess { parse_sess,