From 3abc7272dccf3acf9e66a57d492171e01e2bc16a Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Thu, 12 Dec 2019 10:11:18 +0100 Subject: [PATCH] Consistently name `min_const_fn` --- src/librustc/ty/constness.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc/ty/constness.rs b/src/librustc/ty/constness.rs index 4dcf4db3b8e7..897a3678c400 100644 --- a/src/librustc/ty/constness.rs +++ b/src/librustc/ty/constness.rs @@ -104,11 +104,11 @@ impl<'tcx> TyCtxt<'tcx> { // err on the "safe" side and require min_const_fn. true } else { - // Unstable functions need not conform to min const fn. + // Unstable functions need not conform to min_const_fn. false } } else { - // Internal functions are forced to conform to min const fn. + // Internal functions are forced to conform to min_const_fn. // Annotate the internal function with a const stability attribute if // you need to use unstable features. // Note: this is an arbitrary choice that does not affect stability or const