From 632f9c4d6e1a054c426c7a97399845040fa01b64 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 25 Aug 2018 00:32:41 +0200 Subject: [PATCH] Replace bug! call with Overflow --- src/librustc/traits/structural_impls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/traits/structural_impls.rs b/src/librustc/traits/structural_impls.rs index 87535a6ae8d14..9c9815a1f7650 100644 --- a/src/librustc/traits/structural_impls.rs +++ b/src/librustc/traits/structural_impls.rs @@ -175,7 +175,7 @@ impl<'a, 'tcx> Lift<'tcx> for traits::SelectionError<'a> { super::ConstEvalFailure(ref err) => tcx.lift(&**err).map(|err| super::ConstEvalFailure( err.into(), )), - super::Overflow => bug!(), // FIXME: ape ConstEvalFailure? + super::Overflow => Some(super::Overflow), } } }