Expand comment

Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
This commit is contained in:
ecstatic-morse 2020-01-10 19:29:16 -08:00 committed by GitHub
parent 1d418a1191
commit fc30825c8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -283,7 +283,8 @@ fn check_place(
/// Returns `true` if the given feature gate is allowed within the function with the given `DefId`.
fn feature_allowed(tcx: TyCtxt<'tcx>, def_id: DefId, feature_gate: Symbol) -> bool {
// All features require that the corresponding gate be enabled.
// All features require that the corresponding gate be enabled,
// even if the function has `#[allow_internal_unstable(the_gate)]`.
if !tcx.features().enabled(feature_gate) {
return false;
}