Fix error report for size overflow from transmute
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user