diff options
author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-03-29 08:37:47 +0000 |
---|---|---|
committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-04-04 09:44:45 +0000 |
commit | b08a557f80865433d39d47934904a81b8ab3d720 (patch) | |
tree | f4cdac16cdb87e09fd3d5b1c9eb4935ea455f357 /compiler/rustc_ast_lowering | |
parent | 35d06f9c747bc791d7d6902248d851da98616a57 (diff) | |
download | rust-b08a557f80865433d39d47934904a81b8ab3d720.tar.gz |
rust-analyzer guided enum variant structification
Diffstat (limited to 'compiler/rustc_ast_lowering')
-rw-r--r-- | compiler/rustc_ast_lowering/src/item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/item.rs b/compiler/rustc_ast_lowering/src/item.rs index 2efffbb6dc5..cfcb55275c1 100644 --- a/compiler/rustc_ast_lowering/src/item.rs +++ b/compiler/rustc_ast_lowering/src/item.rs @@ -229,7 +229,7 @@ impl<'hir> LoweringContext<'_, 'hir> { self.lower_use_tree(use_tree, &prefix, id, vis_span, ident, attrs) } - ItemKind::Static(t, m, e) => { + ItemKind::Static(ast::Static(t, m, e)) => { let (ty, body_id) = self.lower_const_item(t, span, e.as_deref()); hir::ItemKind::Static(ty, *m, body_id) } |