1
Fork 0

Replace bug! call with Overflow

This commit is contained in:
Guillaume Gomez 2018-08-25 00:32:41 +02:00
parent 7061b27757
commit 632f9c4d6e

View file

@ -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),
}
}
}