Skip to content

Commit 0f0bfc9

Browse files
Document Features::enabled
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent 029725f commit 0f0bfc9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc_feature/active.rs

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ macro_rules! declare_features {
5353
$(f(stringify!($feature), self.$feature);)+
5454
}
5555

56+
/// Is the given feature enabled?
57+
///
58+
/// Panics if the symbol doesn't correspond to a declared feature.
5659
pub fn enabled(&self, feature: Symbol) -> bool {
5760
match feature {
5861
$( sym::$feature => self.$feature, )*

0 commit comments

Comments
 (0)