Rename ParseSess::span_diagnostic as ParseSess::dcx.
This commit is contained in:
@@ -41,7 +41,7 @@ impl AttrWrapper {
|
||||
}
|
||||
|
||||
pub(crate) fn take_for_recovery(self, sess: &ParseSess) -> AttrVec {
|
||||
sess.span_diagnostic.span_delayed_bug(
|
||||
sess.dcx.span_delayed_bug(
|
||||
self.attrs.get(0).map(|attr| attr.span).unwrap_or(DUMMY_SP),
|
||||
"AttrVec is taken for recovery but no error is produced",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user