#features #attributes #compiler #gate #removed #unstable #rustc-auto-publish

fast-rustc-ap-rustc_feature

Automatically published version of the package rustc_feature in the rust-lang/rust repository from commit 15812785344d913d779d9738fe3cca8de56f71d5 The publishing script for this crate lives at: https://github.com/alexcrichton/rustc-auto-publish

1 stable release

1.0.0 Mar 10, 2020

#1359 in Development tools


Used in 3 crates

MIT/Apache

645KB
13K SLoC

Feature gates

This crate declares the set of past and present unstable features in the compiler. 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.

For the purpose of future feature-tracking, once a feature gate is added, even if it is stabilized or removed, do not remove it. Instead, move the symbol to the accepted or removed modules respectively.

Dependencies

~7MB
~135K SLoC