diff options
| author | Michael Goulet <michael@errs.io> | 2025-01-27 01:16:12 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-01-27 01:23:34 +0000 |
| commit | ac1c6c50f4a82a34002231d2c1a2a5a007af959f (patch) | |
| tree | 388cc5e1e6836633456c3d54c244b4639b139083 /compiler/rustc_parse/src | |
| parent | f85c6de55206dbee5ffedfd821df1503a7b92346 (diff) | |
| download | rust-ac1c6c50f4a82a34002231d2c1a2a5a007af959f.tar.gz rust-ac1c6c50f4a82a34002231d2c1a2a5a007af959f.zip | |
Use identifiers in diagnostics more often
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index f78d9dc2bfc..50287b706ce 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -3233,7 +3233,7 @@ pub(crate) struct MalformedCfgAttr { pub(crate) struct UnknownBuiltinConstruct { #[primary_span] pub span: Span, - pub name: Symbol, + pub name: Ident, } #[derive(Diagnostic)] diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 5cd02128287..a5b73ce4098 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -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); }; |
