Skip to content

Commit 8c83264

Browse files
committed
Elaborate internal const fn comment
1 parent c7471ad commit 8c83264

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc/ty/constness.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ impl<'tcx> TyCtxt<'tcx> {
108108
false
109109
}
110110
} else {
111-
// Unstable functions or internal functions need not conform to min const fn.
111+
// Internal functions need not conform to min const fn unless used inside stable
112+
// const fns. Annotate the internal function with a const stability attribute if
113+
// you need this.
112114
false
113115
},
114116
// Everything else needs to conform, because it would be callable from

0 commit comments

Comments
 (0)