Skip to content

Commit fa10786

Browse files
authored
Rollup merge of rust-lang#137227 - epage:features_untracked, r=compiler-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
2 parents d8debbd + 5e92241 commit fa10786

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/doc/rustc-dev-guide/src/implementing_new_features.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,7 @@ a new unstable feature:
167167

168168
1. Prevent usage of the new feature unless the feature gate is set.
169169
You can check it in most places in the compiler using the
170-
expression `tcx.features().$feature_name` (or
171-
`sess.features_untracked().$feature_name` if the
172-
tcx is unavailable)
170+
expression `tcx.features().$feature_name()`
173171

174172
If the feature gate is not set, you should either maintain
175173
the pre-feature behavior or raise an error, depending on

0 commit comments

Comments
 (0)