1
Fork 0

Fix error report for size overflow from transmute

This commit is contained in:
yukang 2023-09-03 10:58:13 +08:00
parent b588641208
commit 00010eda8b
6 changed files with 79 additions and 0 deletions

View file

@ -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")]