]> git.lizzy.rs Git - rust.git/commitdiff
const fns can read constants that invoke unstable const fns
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Sat, 30 Nov 2019 10:12:48 +0000 (11:12 +0100)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Tue, 3 Dec 2019 09:20:15 +0000 (10:20 +0100)
src/librustc/ty/constness.rs

index 1ea8cbba46e83cfca70b189b09a682c89432c45c..6df49683f688f724362c382aa9ef1e629593ec96 100644 (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