diff options
| author | Alex Burka <alex@alexburka.com> | 2017-09-08 18:11:30 +0000 |
|---|---|---|
| committer | Alex Burka <alex@alexburka.com> | 2017-09-13 15:07:17 +0000 |
| commit | a12d0d4f6672a9621771433d2f05757f1f79130d (patch) | |
| tree | 311a6bcf852139223a8444c1442d3248fd9e6e24 /src/libsyntax/feature_gate.rs | |
| parent | 824952f48b85806c498d700f183dfc42b516cc7d (diff) | |
| download | rust-a12d0d4f6672a9621771433d2f05757f1f79130d.tar.gz rust-a12d0d4f6672a9621771433d2f05757f1f79130d.zip | |
honor #[rustc_const_unstable] attributes
Diffstat (limited to 'src/libsyntax/feature_gate.rs')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 3d4ded2ae81..38e20b9fe40 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -137,6 +137,7 @@ declare_features! ( // rustc internal (active, rustc_diagnostic_macros, "1.0.0", None), + (active, rustc_const_unstable, "1.0.0", None), (active, advanced_slice_patterns, "1.0.0", Some(23121)), (active, box_syntax, "1.0.0", Some(27779)), (active, placement_in_syntax, "1.0.0", Some(27779)), @@ -622,6 +623,11 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG "the `#[rustc_on_unimplemented]` attribute \ is an experimental feature", cfg_fn!(on_unimplemented))), + ("rustc_const_unstable", Normal, Gated(Stability::Unstable, + "rustc_const_unstable", + "the `#[rustc_const_unstable]` attribute \ + is an internal feature", + cfg_fn!(rustc_const_unstable))), ("global_allocator", Normal, Gated(Stability::Unstable, "global_allocator", "the `#[global_allocator]` attribute is \ |
