Fix error report for size overflow from transmute
This commit is contained in:
parent
b588641208
commit
00010eda8b
6 changed files with 79 additions and 0 deletions
|
@ -64,6 +64,10 @@ pub enum Reason {
|
|||
SrcLayoutUnknown,
|
||||
/// The layout of dst is unknown
|
||||
DstLayoutUnknown,
|
||||
/// The size of src is overflow
|
||||
SrcSizeOverflow,
|
||||
/// The size of dst is overflow
|
||||
DstSizeOverflow,
|
||||
}
|
||||
|
||||
#[cfg(feature = "rustc")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue