Skip to content

Commit fc30825

Browse files
Expand comment
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent 1d418a1 commit fc30825

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_mir/transform/qualify_min_const_fn.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ fn check_place(
283283

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

0 commit comments

Comments
 (0)