Update src/implementing_new_feature.md

Co-Authored-By: rajcspsg <raj.cs.psg@gmail.com>
This commit is contained in:
Who? Me?! 2019-02-20 12:57:26 -05:00
parent 6e7e27ac7a
commit 3c4f0bb33e
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ The current version is not actually important the important version is when
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 expression `tcx.features().$feature_name` (or `sess.features_untracked().borrow().$feature_name` if the tcx is unavailable) You can check it in most places in the compiler using the expression `tcx.features().$feature_name` (or `sess.features_untracked().borrow().$feature_name` if the tcx is unavailable)
If the feature gate is not set, you should either maintain the pre-feature behavior or raise an error, depending on what makes sense. If the feature gate is not set, you should either maintain the pre-feature behavior or raise an error, depending on what makes sense.