Commit 91fcd40 1 parent b756b7d commit 91fcd40 Copy full SHA for 91fcd40
File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
- //! # Feature gating
1
+ //! # Feature gates
2
2
//!
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.
7
5
//!
8
6
//! Features are enabled in programs via the crate-level attributes of
9
7
//! `#![feature(...)]` with a comma-separated list of features.
10
8
//!
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 .
14
12
15
13
mod accepted;
16
14
mod removed;
You can’t perform that action at this time.
0 commit comments