Skip to content

Commit 632f9c4

Browse files
Replace bug! call with Overflow
1 parent 7061b27 commit 632f9c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/traits/structural_impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ impl<'a, 'tcx> Lift<'tcx> for traits::SelectionError<'a> {
175175
super::ConstEvalFailure(ref err) => tcx.lift(&**err).map(|err| super::ConstEvalFailure(
176176
err.into(),
177177
)),
178-
super::Overflow => bug!(), // FIXME: ape ConstEvalFailure?
178+
super::Overflow => Some(super::Overflow),
179179
}
180180
}
181181
}

0 commit comments

Comments
 (0)