From fc30825c8b22d93419a087fcec1817108d9b694b Mon Sep 17 00:00:00 2001 From: ecstatic-morse Date: Fri, 10 Jan 2020 19:29:16 -0800 Subject: [PATCH] Expand comment Co-Authored-By: Mazdak Farrokhzad --- src/librustc_mir/transform/qualify_min_const_fn.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librustc_mir/transform/qualify_min_const_fn.rs b/src/librustc_mir/transform/qualify_min_const_fn.rs index 74b21435eae..c2c1625001d 100644 --- a/src/librustc_mir/transform/qualify_min_const_fn.rs +++ b/src/librustc_mir/transform/qualify_min_const_fn.rs @@ -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; }