From d9cca74ffc0e5bdd2949d73a08945137171abb58 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Sat, 30 Nov 2019 11:12:48 +0100 Subject: [PATCH] const fns can read constants that invoke unstable const fns --- src/librustc/ty/constness.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/ty/constness.rs b/src/librustc/ty/constness.rs index 1ea8cbba46e..6df49683f68 100644 --- a/src/librustc/ty/constness.rs +++ b/src/librustc/ty/constness.rs @@ -116,7 +116,7 @@ fn is_const_intrinsic(tcx: TyCtxt<'_>, def_id: DefId) -> Option { // 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 -- 2.44.0