Replace error by bug macro
This commit is contained in:
parent
51793bd318
commit
92c28bfabc
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue