diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-11-30 00:39:51 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-11-30 00:39:51 +0100 |
| commit | 048201fa7a69b3c3795e76186bc954d06d2ca368 (patch) | |
| tree | 9bfdc2f788a9fb25047366671946f0fff3c3850c /src/libsyntax/feature_gate | |
| parent | 3d080a4a77274abd747f780b446e6fedce14fac7 (diff) | |
| download | rust-048201fa7a69b3c3795e76186bc954d06d2ca368.tar.gz rust-048201fa7a69b3c3795e76186bc954d06d2ca368.zip | |
move Stability to rustc_feature
Diffstat (limited to 'src/libsyntax/feature_gate')
| -rw-r--r-- | src/libsyntax/feature_gate/builtin_attrs.rs | 4 | ||||
| -rw-r--r-- | src/libsyntax/feature_gate/check.rs | 8 |
2 files changed, 2 insertions, 10 deletions
diff --git a/src/libsyntax/feature_gate/builtin_attrs.rs b/src/libsyntax/feature_gate/builtin_attrs.rs index e6f61e8fcbe..70f923c2783 100644 --- a/src/libsyntax/feature_gate/builtin_attrs.rs +++ b/src/libsyntax/feature_gate/builtin_attrs.rs @@ -4,8 +4,8 @@ use AttributeType::*; use AttributeGate::*; use super::check::{emit_feature_err, GateIssue}; -use super::check::{Stability, EXPLAIN_ALLOW_INTERNAL_UNSAFE, EXPLAIN_ALLOW_INTERNAL_UNSTABLE}; -use rustc_feature::Features; +use super::check::{EXPLAIN_ALLOW_INTERNAL_UNSAFE, EXPLAIN_ALLOW_INTERNAL_UNSTABLE}; +use rustc_feature::{Features, Stability}; use crate::ast; use crate::attr::AttributeTemplate; diff --git a/src/libsyntax/feature_gate/check.rs b/src/libsyntax/feature_gate/check.rs index 7d959756f23..19e615f40fa 100644 --- a/src/libsyntax/feature_gate/check.rs +++ b/src/libsyntax/feature_gate/check.rs @@ -22,14 +22,6 @@ use rustc_error_codes::*; use std::env; use std::num::NonZeroU32; -#[derive(Copy, Clone, Debug)] -pub enum Stability { - Unstable, - // First argument is tracking issue link; second argument is an optional - // help message, which defaults to "remove this attribute" - Deprecated(&'static str, Option<&'static str>), -} - macro_rules! gate_feature_fn { ($cx: expr, $has_feature: expr, $span: expr, $name: expr, $explain: expr, $level: expr) => {{ let (cx, has_feature, span, |
