Skip to content

Commit

Permalink
Replace error by bug macro
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdrz committed Jun 30, 2019
1 parent 51793bd commit 92c28bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/interpret/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpretCx<'mir, 'tcx, M> {
Err(e) => Err(e),
}
}
_ => return err!(Unimplemented(format!("ptr to {:?} cast", dest_layout.ty))),
_ => bug!("invalid MIR: ptr to {:?} cast", dest_layout.ty)
}
}

Expand Down

0 comments on commit 92c28bf

Please sign in to comment.