about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser
diff options
context:
space:
mode:
authorThe rustc-dev-guide Cronjob Bot <github-actions@github.com>2025-05-15 09:46:22 +0000
committerThe rustc-dev-guide Cronjob Bot <github-actions@github.com>2025-05-15 09:46:22 +0000
commit1fd536c5fb7616f08973dd33074efb94e82eea44 (patch)
tree7b32415cdda158f9c51d195f0f03921c86d8892a /compiler/rustc_parse/src/parser
parent4adff2f244140be9ac78c0bd6774bf5acb828029 (diff)
parent414482f6a0d4e7290f614300581a0b55442552a3 (diff)
downloadrust-1fd536c5fb7616f08973dd33074efb94e82eea44.tar.gz
rust-1fd536c5fb7616f08973dd33074efb94e82eea44.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_parse/src/parser')
-rw-r--r--compiler/rustc_parse/src/parser/expr.rs2
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 f3b53971b29..2a7910a6af4 100644
--- a/compiler/rustc_parse/src/parser/expr.rs
+++ b/compiler/rustc_parse/src/parser/expr.rs
@@ -3828,7 +3828,7 @@ impl<'a> Parser<'a> {
         // Convert `label` -> `'label`,
         // so that nameres doesn't complain about non-existing label
         let label = format!("'{}", ident.name);
-        let ident = Ident { name: Symbol::intern(&label), span: ident.span };
+        let ident = Ident::new(Symbol::intern(&label), ident.span);
 
         self.dcx().emit_err(errors::ExpectedLabelFoundIdent {
             span: ident.span,