From 8c83264989a80de4a1352145addc7ce6d511157d Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Sun, 8 Dec 2019 09:34:34 +0100 Subject: [PATCH] Elaborate internal const fn comment --- src/librustc/ty/constness.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/librustc/ty/constness.rs b/src/librustc/ty/constness.rs index 0c87a53b3d0..0f07b4abc6d 100644 --- a/src/librustc/ty/constness.rs +++ b/src/librustc/ty/constness.rs @@ -108,7 +108,9 @@ impl<'tcx> TyCtxt<'tcx> { false } } else { - // Unstable functions or internal functions need not conform to min const fn. + // Internal functions need not conform to min const fn unless used inside stable + // const fns. Annotate the internal function with a const stability attribute if + // you need this. false }, // Everything else needs to conform, because it would be callable from