diff --git a/compiler/rustc_middle/src/ty/consts.rs b/compiler/rustc_middle/src/ty/consts.rs index 464b8b256da2f..fa99ac7dd13d7 100644 --- a/compiler/rustc_middle/src/ty/consts.rs +++ b/compiler/rustc_middle/src/ty/consts.rs @@ -298,7 +298,6 @@ impl<'tcx> Const<'tcx> { if let Some(lit_input) = lit_input { // If an error occurred, ignore that it's a literal and leave reporting the error up to // mir. - // try_from_lit match tcx.at(expr.span).lit_to_const(lit_input) { Ok(c) => return Some(c), Err(e) => {