diff options
| author | ecstatic-morse <ecstaticmorse@gmail.com> | 2020-01-10 19:29:16 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-10 19:29:16 -0800 |
| commit | fc30825c8b22d93419a087fcec1817108d9b694b (patch) | |
| tree | 677e8144e00458d19cb9e91382e6e58f741a1b32 | |
| parent | 1d418a11913888585d04a322178db28d01300840 (diff) | |
| download | rust-fc30825c8b22d93419a087fcec1817108d9b694b.tar.gz rust-fc30825c8b22d93419a087fcec1817108d9b694b.zip | |
Expand comment
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
| -rw-r--r-- | src/librustc_mir/transform/qualify_min_const_fn.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |
