//! # Feature gates
//!
//! This crate declares the set of past and present unstable features in the compiler.
-//! Feature gate checking itself is done in `libsyntax/feature_gate/check.rs` at the moment.
+//! Feature gate checking itself is done in `librustc_ast_passes/feature_gate.rs`
+//! at the moment.
//!
//! Features are enabled in programs via the crate-level attributes of
//! `#![feature(...)]` with a comma-separated list of features.
impl Feature {
fn issue(&self) -> Option<NonZeroU32> {
- self.issue.and_then(|i| NonZeroU32::new(i))
+ self.issue.and_then(NonZeroU32::new)
}
}