diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2018-11-15 16:16:34 +0100 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2018-11-15 16:16:34 +0100 |
| commit | c8a9300d8e263cf3f37a7d6736a0167d085b19cd (patch) | |
| tree | cf360e64c1cbc4ca70ab72b9a9581ed3afcfa09d /src/libsyntax | |
| parent | 99e3fca27d141e2d100ebaf5d5a4104234ae201a (diff) | |
| download | rust-c8a9300d8e263cf3f37a7d6736a0167d085b19cd.tar.gz rust-c8a9300d8e263cf3f37a7d6736a0167d085b19cd.zip | |
Fix stability hole with `static _`
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 1 |
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, |
