about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/builtin.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-10-09 08:30:43 +0200
committerRalf Jung <post@ralfj.de>2024-10-22 07:37:55 +0100
commit1381773e01210cc7f377a9ab1aa886e621ceafe4 (patch)
tree1ca3498ed29b4da5d19b96265fa99ff5cc2e7283 /compiler/rustc_lint/src/builtin.rs
parent46ce5cbf339e1ea84d2b28ac04369084b9f2d948 (diff)
downloadrust-1381773e01210cc7f377a9ab1aa886e621ceafe4.tar.gz
rust-1381773e01210cc7f377a9ab1aa886e621ceafe4.zip
make some rustc_feature internals private, and ensure invariants with debug assertions
Diffstat (limited to 'compiler/rustc_lint/src/builtin.rs')
-rw-r--r--compiler/rustc_lint/src/builtin.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs
index 8fac1a82e8a..125fe9b3f16 100644
--- a/compiler/rustc_lint/src/builtin.rs
+++ b/compiler/rustc_lint/src/builtin.rs
@@ -2288,10 +2288,10 @@ impl EarlyLintPass for IncompleteInternalFeatures {
     fn check_crate(&mut self, cx: &EarlyContext<'_>, _: &ast::Crate) {
         let features = cx.builder.features();
         features
-            .enabled_lang_features
+            .enabled_lang_features()
             .iter()
             .map(|(name, span, _)| (name, span))
-            .chain(features.enabled_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) {