diff --git a/src/librustc_mir/const_eval.rs b/src/librustc_mir/const_eval.rs index 1542cdf1e3e..1c3f7882b9f 100644 --- a/src/librustc_mir/const_eval.rs +++ b/src/librustc_mir/const_eval.rs @@ -654,7 +654,7 @@ pub fn const_eval_raw_provider<'a, 'tcx>( v)); v }, - Err(ErrorReported) => ErrorHandled::Reported, + Err(_) => ErrorHandled::Reported, } } else if def_id.is_local() { // constant defined in this crate, we can figure out a lint level!