Skip to content

Commit 1761d88

Browse files
oli-obkfee1-dead
authored andcommitted
Static items are also const
1 parent 721ffd1 commit 1761d88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_hir/src/hir.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3246,6 +3246,7 @@ impl<'hir> Node<'hir> {
32463246
| Node::Item(Item { kind: ItemKind::Impl(Impl { constness, .. }), .. }) => *constness,
32473247

32483248
Node::Item(Item { kind: ItemKind::Const(..), .. })
3249+
| Node::Item(Item { kind: ItemKind::Static(..), .. })
32493250
| Node::TraitItem(TraitItem { kind: TraitItemKind::Const(..), .. })
32503251
| Node::ImplItem(ImplItem { kind: ImplItemKind::Const(..), .. }) => Constness::Const,
32513252

0 commit comments

Comments
 (0)