Small fix to code for checking feature gate

This commit is contained in:
Alexander Regueiro 2019-03-21 23:29:17 +00:00 committed by Who? Me?!
parent ffdc1563c6
commit dbffbfcc6b
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ version is when you are stabilizing a feature.
4. Prevent usage of the new feature unless the feature gate is set. 4. Prevent usage of the new feature unless the feature gate is set.
You can check it in most places in the compiler using the You can check it in most places in the compiler using the
expression `tcx.features().$feature_name` (or expression `tcx.features().$feature_name` (or
`sess.features_untracked().borrow().$feature_name` if the `sess.features_untracked().$feature_name` if the
tcx is unavailable) tcx is unavailable)
If the feature gate is not set, you should either maintain If the feature gate is not set, you should either maintain