We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03e3cc5 commit 2d0c41aCopy full SHA for 2d0c41a
src/constant.rs
@@ -47,7 +47,7 @@ pub(crate) fn check_constants(fx: &mut FunctionCx<'_, '_, '_>) -> bool {
47
if let Err(err) = fx.tcx.const_eval_resolve(ParamEnv::reveal_all(), unevaluated, None) {
48
all_constants_ok = false;
49
match err {
50
- ErrorHandled::Reported(_) | ErrorHandled::Linted => {
+ ErrorHandled::Reported(_) => {
51
fx.tcx.sess.span_err(constant.span, "erroneous constant encountered");
52
}
53
ErrorHandled::TooGeneric => {
0 commit comments