Use identifiers in diagnostics more often
This commit is contained in:
@@ -1958,7 +1958,7 @@ impl<'a> Parser<'a> {
|
||||
} else {
|
||||
let err = self.dcx().create_err(errors::UnknownBuiltinConstruct {
|
||||
span: lo.to(ident.span),
|
||||
name: ident.name,
|
||||
name: ident,
|
||||
});
|
||||
return Err(err);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user