diff options
| author | Ralf Jung <post@ralfj.de> | 2022-11-15 12:06:20 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-11-16 10:13:29 +0100 |
| commit | 2d0c41a9a3915e7d1c4a4a363b83b1954dab055e (patch) | |
| tree | 4e4f635a97a3151a17cd1c32bd9a7c424ca8a8a1 | |
| parent | 03e3cc5b77ac403e68c0dba25c7e4ad92f3a2da6 (diff) | |
| download | rust-2d0c41a9a3915e7d1c4a4a363b83b1954dab055e.tar.gz rust-2d0c41a9a3915e7d1c4a4a363b83b1954dab055e.zip | |
cleanup and dedupe CTFE and Miri error reporting
| -rw-r--r-- | src/constant.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constant.rs b/src/constant.rs index c0c6c76473b..5478caee57d 100644 --- a/src/constant.rs +++ b/src/constant.rs @@ -47,7 +47,7 @@ pub(crate) fn check_constants(fx: &mut FunctionCx<'_, '_, '_>) -> bool { if let Err(err) = fx.tcx.const_eval_resolve(ParamEnv::reveal_all(), unevaluated, None) { all_constants_ok = false; match err { - ErrorHandled::Reported(_) | ErrorHandled::Linted => { + ErrorHandled::Reported(_) => { fx.tcx.sess.span_err(constant.span, "erroneous constant encountered"); } ErrorHandled::TooGeneric => { |
