Remove Parser
methods that duplicate DiagCtxt
methods.
This commit is contained in:
parent
d86a48278f
commit
ec9af0d6cb
11 changed files with 54 additions and 61 deletions
|
@ -155,7 +155,7 @@ pub fn expand_include<'cx>(
|
|||
if self.p.token != token::Eof {
|
||||
let token = pprust::token_to_string(&self.p.token);
|
||||
let msg = format!("expected item, found `{token}`");
|
||||
self.p.struct_span_err(self.p.token.span, msg).emit();
|
||||
self.p.dcx().struct_span_err(self.p.token.span, msg).emit();
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue