Rename Parser::span_diagnostic
as Parser::dcx
.
This commit is contained in:
parent
09af8a667c
commit
73bac456d4
8 changed files with 40 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue