about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2018-11-15 16:16:34 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2018-11-15 16:16:34 +0100
commitc8a9300d8e263cf3f37a7d6736a0167d085b19cd (patch)
treecf360e64c1cbc4ca70ab72b9a9581ed3afcfa09d /src/libsyntax
parent99e3fca27d141e2d100ebaf5d5a4104234ae201a (diff)
downloadrust-c8a9300d8e263cf3f37a7d6736a0167d085b19cd.tar.gz
rust-c8a9300d8e263cf3f37a7d6736a0167d085b19cd.zip
Fix stability hole with `static _`
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/feature_gate.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index 55652c481bd..a7c97feee49 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -1583,6 +1583,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
                 }
             }
 
+            ast::ItemKind::Static(..) |
             ast::ItemKind::Const(_,_) => {
                 if i.ident.name == "_" {
                     gate_feature_post!(&self, underscore_const_names, i.span,