Rename ParseSess::span_diagnostic
as ParseSess::dcx
.
This commit is contained in:
parent
9b1f87c7e8
commit
9df1576e1d
26 changed files with 89 additions and 98 deletions
|
@ -3537,7 +3537,7 @@ impl<'a> Parser<'a> {
|
|||
ident_span: this.token.span,
|
||||
token: this.look_ahead(1, |t| t.clone()),
|
||||
}
|
||||
.into_diagnostic(&self.sess.span_diagnostic));
|
||||
.into_diagnostic(&self.sess.dcx));
|
||||
}
|
||||
let (ident, expr) = if is_shorthand {
|
||||
// Mimic `x: x` for the `x` field shorthand.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue