From cce3961f9affd254b76c518261a925afce92d672 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Mon, 18 Dec 2023 07:52:43 +1100 Subject: [PATCH] Rename `ParseSess::with_span_handler` as `ParseSess::with_dcx`. --- src/parse/session.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,