about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-02-19 18:52:08 +0100
committerGitHub <noreply@github.com>2025-02-19 18:52:08 +0100
commitfa10786e18519d3618736a465a786ad3fbb3124b (patch)
treefdffe3ae06ac2fd879a22fc2ea57736d20d71134 /src
parentd8debbdd683f2389bd84753f0f1925b25b423635 (diff)
parent5e92241b618714adaa3894afc992b648ba5889a8 (diff)
Rollup merge of #137227 - epage:features_untracked, r=compiler-errors
docs(dev): Update the feature-gate instructions

`features_untracked` was removed in #114723

features are now functions as of  #132027
Diffstat (limited to 'src')
-rw-r--r--src/doc/rustc-dev-guide/src/implementing_new_features.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/implementing_new_features.md b/src/doc/rustc-dev-guide/src/implementing_new_features.md
index 5b67ccd7f4c..fda38ef4fc0 100644
--- a/src/doc/rustc-dev-guide/src/implementing_new_features.md
+++ b/src/doc/rustc-dev-guide/src/implementing_new_features.md
@@ -167,9 +167,7 @@ a new unstable feature:
 
 1. Prevent usage of the new feature unless the feature gate is set.
    You can check it in most places in the compiler using the
-   expression `tcx.features().$feature_name` (or
-   `sess.features_untracked().$feature_name` if the
-   tcx is unavailable)
+   expression `tcx.features().$feature_name()`
 
     If the feature gate is not set, you should either maintain
     the pre-feature behavior or raise an error, depending on