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/parser/expr.rs | |
| parent | f85c6de55206dbee5ffedfd821df1503a7b92346 (diff) | |
| download | rust-ac1c6c50f4a82a34002231d2c1a2a5a007af959f.tar.gz rust-ac1c6c50f4a82a34002231d2c1a2a5a007af959f.zip | |
Use identifiers in diagnostics more often
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); }; |
