Rename Parser::span_diagnostic as Parser::dcx.

This commit is contained in:
Nicholas Nethercote 2023-12-18 07:37:58 +11:00
parent 09af8a667c
commit 73bac456d4
8 changed files with 40 additions and 42 deletions

View file

@ -266,8 +266,7 @@ impl<'a> Parser<'a> {
if let Some(attr_range) = self.capture_state.inner_attr_ranges.remove(&inner_attr.id) {
inner_attr_replace_ranges.push(attr_range);
} else {
self.diagnostic()
.span_delayed_bug(inner_attr.span, "Missing token range for attribute");
self.dcx().span_delayed_bug(inner_attr.span, "Missing token range for attribute");
}
}