Skip to content

Commit 9d4053f

Browse files
committed
revert error message changes
1 parent d434496 commit 9d4053f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/qualify_consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ impl<'a, 'tcx> Visitor<'tcx> for Checker<'a, 'tcx> {
14161416
if self.mode.requires_const_checking() && !unleash_miri {
14171417
let mut err = self.tcx.sess.struct_span_err(
14181418
self.span,
1419-
"function pointers in `const fn` are unstable",
1419+
"function pointers are not allowed in const fn"
14201420
);
14211421
err.emit();
14221422
}

0 commit comments

Comments
 (0)