Skip to content

Commit

Permalink
docs(dev): Access features as functions, not members
Browse files Browse the repository at this point in the history
This was changed in rust-lang#132027
  • Loading branch information
epage committed Feb 18, 2025
1 parent aecde19 commit 5e92241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/rustc-dev-guide/src/implementing_new_features.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +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`
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 5e92241

Please sign in to comment.