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

@ -123,7 +123,7 @@ impl<'a> Parser<'a> {
self.bump(); // colon
self.diagnostic()
self.dcx()
.struct_span_err(
self.prev_token.span,
"found single colon before projection in qualified path",
@ -326,7 +326,7 @@ impl<'a> Parser<'a> {
.is_nightly_build()
.then_some(()),
}
.into_diagnostic(self.diagnostic());
.into_diagnostic(self.dcx());
}
// Attempt to find places where a missing `>` might belong.
else if let Some(arg) = args