Elaborate internal const fn comment

This commit is contained in:
Oliver Scherer 2019-12-08 09:34:34 +01:00
parent c7471ad43a
commit 8c83264989

View File

@ -108,7 +108,9 @@ pub fn is_min_const_fn(self, def_id: DefId) -> bool {
false false
} }
} else { } 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 false
}, },
// Everything else needs to conform, because it would be callable from // Everything else needs to conform, because it would be callable from