Skip to content

Commit 92c28bf

Browse files
committed
Replace error by bug macro
1 parent 51793bd commit 92c28bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/cast.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpretCx<'mir, 'tcx, M> {
257257
Err(e) => Err(e),
258258
}
259259
}
260-
_ => return err!(Unimplemented(format!("ptr to {:?} cast", dest_layout.ty))),
260+
_ => bug!("invalid MIR: ptr to {:?} cast", dest_layout.ty)
261261
}
262262
}
263263

0 commit comments

Comments
 (0)