Skip to content

Commit

Permalink
Rollup merge of rust-lang#137227 - epage:features_untracked, r=compil…
Browse files Browse the repository at this point in the history
…er-errors

docs(dev): Update the feature-gate instructions

`features_untracked` was removed in rust-lang#114723

features are now functions as of  rust-lang#132027
  • Loading branch information
matthiaskrgr authored Feb 18, 2025
2 parents 7ecbfe1 + 5e92241 commit 29c6ae0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/doc/rustc-dev-guide/src/implementing_new_features.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29c6ae0

Please sign in to comment.