Skip to content

Commit 91fcd40

Browse files
committed
update rustc_feature crate docs
1 parent b756b7d commit 91fcd40

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/librustc_feature/lib.rs

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
//! # Feature gating
1+
//! # Feature gates
22
//!
3-
//! This module implements the gating necessary for preventing certain compiler
4-
//! features from being used by default. This module will crawl a pre-expanded
5-
//! AST to ensure that there are no features which are used that are not
6-
//! enabled.
3+
//! This crate declares the set of past and present unstable features in the compiler.
4+
//! Feature gate checking itself is done in `libsyntax/feature_gate/check.rs` at the moment.
75
//!
86
//! Features are enabled in programs via the crate-level attributes of
97
//! `#![feature(...)]` with a comma-separated list of features.
108
//!
11-
//! For the purpose of future feature-tracking, once code for detection of feature
12-
//! gate usage is added, *do not remove it again* even once the feature
13-
//! becomes stable.
9+
//! For the purpose of future feature-tracking, once a feature gate is added,
10+
//! even if it is stabilized or removed, *do not remove it*. Instead, move the
11+
//! symbol to the `accepted` or `removed` modules respectively.
1412
1513
mod accepted;
1614
mod removed;

0 commit comments

Comments
 (0)