]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_feature/lib.rs
Rollup merge of #69740 - mark-i-m:describe-it-3, r=eddyb
[rust.git] / src / librustc_feature / lib.rs
index 71a464279253b12ef817d8f50159da82cd787ac7..f8bf0315d0c9f0a4a26729a9bd4efcb444566dee 100644 (file)
@@ -1,7 +1,8 @@
 //! # 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.
@@ -50,7 +51,7 @@ pub struct Feature {
 
 impl Feature {
     fn issue(&self) -> Option<NonZeroU32> {
-        self.issue.and_then(|i| NonZeroU32::new(i))
+        self.issue.and_then(NonZeroU32::new)
     }
 }