terminology: #[feature] *enables* a feature (instead of "declaring" or "activating" it)
This commit is contained in:
parent
3ec4308f6c
commit
46ce5cbf33
21 changed files with 117 additions and 131 deletions
|
@ -2288,10 +2288,10 @@ impl EarlyLintPass for IncompleteInternalFeatures {
|
|||
fn check_crate(&mut self, cx: &EarlyContext<'_>, _: &ast::Crate) {
|
||||
let features = cx.builder.features();
|
||||
features
|
||||
.declared_lang_features
|
||||
.enabled_lang_features
|
||||
.iter()
|
||||
.map(|(name, span, _)| (name, span))
|
||||
.chain(features.declared_lib_features.iter().map(|(name, span)| (name, span)))
|
||||
.chain(features.enabled_lib_features.iter().map(|(name, span)| (name, span)))
|
||||
.filter(|(&name, _)| features.incomplete(name) || features.internal(name))
|
||||
.for_each(|(&name, &span)| {
|
||||
if features.incomplete(name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue