const fns can read constants that invoke unstable const fns

This commit is contained in:
Oliver Scherer 2019-11-30 11:12:48 +01:00
parent 1f20b4dc19
commit d9cca74ffc

View File

@ -116,7 +116,7 @@ fn is_const_intrinsic(tcx: TyCtxt<'_>, def_id: DefId) -> Option<bool> {
// This whitelist is a list of intrinsics that have a miri-engine implementation
// and can thus be called when enabling enough feature gates. The similar
// whitelist in `is_intrinsic_min_const_fn` (in this file), exists for allowing
// the intrinsics to be transitively called by stable const fns.
// the intrinsics to be called by stable const fns.
| sym::caller_location
| sym::min_align_of