Skip to content

Commit 8c0edca

Browse files
committed
Static items are also const
1 parent 8e84aa9 commit 8c0edca

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
@@ -3242,6 +3242,7 @@ impl<'hir> Node<'hir> {
32423242
| Node::Item(Item { kind: ItemKind::Impl(Impl { constness, .. }), .. }) => *constness,
32433243

32443244
Node::Item(Item { kind: ItemKind::Const(..), .. })
3245+
| Node::Item(Item { kind: ItemKind::Static(..), .. })
32453246
| Node::TraitItem(TraitItem { kind: TraitItemKind::Const(..), .. })
32463247
| Node::ImplItem(ImplItem { kind: ImplItemKind::Const(..), .. }) => Constness::Const,
32473248

0 commit comments

Comments
 (0)