Skip to content

Commit 5e92241

Browse files
committed
docs(dev): Access features as functions, not members
This was changed in rust-lang#132027
1 parent aecde19 commit 5e92241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +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`
170+
expression `tcx.features().$feature_name()`
171171

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

0 commit comments

Comments
 (0)