We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d418a1 commit fc30825Copy full SHA for fc30825
src/librustc_mir/transform/qualify_min_const_fn.rs
@@ -283,7 +283,8 @@ fn check_place(
283
284
/// Returns `true` if the given feature gate is allowed within the function with the given `DefId`.
285
fn feature_allowed(tcx: TyCtxt<'tcx>, def_id: DefId, feature_gate: Symbol) -> bool {
286
- // All features require that the corresponding gate be enabled.
+ // All features require that the corresponding gate be enabled,
287
+ // even if the function has `#[allow_internal_unstable(the_gate)]`.
288
if !tcx.features().enabled(feature_gate) {
289
return false;
290
}
0 commit comments