Skip to content

Commit 2d0c41a

Browse files
committed
cleanup and dedupe CTFE and Miri error reporting
1 parent 03e3cc5 commit 2d0c41a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/constant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub(crate) fn check_constants(fx: &mut FunctionCx<'_, '_, '_>) -> bool {
4747
if let Err(err) = fx.tcx.const_eval_resolve(ParamEnv::reveal_all(), unevaluated, None) {
4848
all_constants_ok = false;
4949
match err {
50-
ErrorHandled::Reported(_) | ErrorHandled::Linted => {
50+
ErrorHandled::Reported(_) => {
5151
fx.tcx.sess.span_err(constant.span, "erroneous constant encountered");
5252
}
5353
ErrorHandled::TooGeneric => {

0 commit comments

Comments
 (0)