diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-01-27 15:38:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-27 15:38:30 +0100 |
| commit | 03fdcffa1ebc2034af361e8527ad5caf92f07ae5 (patch) | |
| tree | 2749af06db172099038d70db43da778fdef5596f /compiler/rustc_parse/src/parser/expr.rs | |
| parent | f4a5cbd0d8078ca2602f588c0c7f444041d86e92 (diff) | |
| parent | c08624d8d218beb86d89a794ab285144248c7545 (diff) | |
| download | rust-03fdcffa1ebc2034af361e8527ad5caf92f07ae5.tar.gz rust-03fdcffa1ebc2034af361e8527ad5caf92f07ae5.zip | |
Rollup merge of #136114 - compiler-errors:more-idents, r=jieyouxu
Use identifiers more in diagnostics code This should make the diagnostics code slightly more correct when rendering idents in mixed crate edition situations. Kinda a no-op, but a cleanup regardless. r? oli-obk or reassign
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); }; |
