revert error message changes

This commit is contained in:
gnzlbg 2019-09-21 17:24:42 +02:00
parent d434496973
commit 9d4053f692

View File

@ -1416,7 +1416,7 @@ impl<'a, 'tcx> Visitor<'tcx> for Checker<'a, 'tcx> {
if self.mode.requires_const_checking() && !unleash_miri {
let mut err = self.tcx.sess.struct_span_err(
self.span,
"function pointers in `const fn` are unstable",
"function pointers are not allowed in const fn"
);
err.emit();
}