diff options
| -rw-r--r-- | src/librustc_feature/active.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustc_feature/active.rs b/src/librustc_feature/active.rs index 20357e5581a..08b65aff7c9 100644 --- a/src/librustc_feature/active.rs +++ b/src/librustc_feature/active.rs @@ -53,6 +53,9 @@ macro_rules! declare_features { $(f(stringify!($feature), self.$feature);)+ } + /// Is the given feature enabled? + /// + /// Panics if the symbol doesn't correspond to a declared feature. pub fn enabled(&self, feature: Symbol) -> bool { match feature { $( sym::$feature => self.$feature, )* |
