You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// SAFETY: the caller must uphold the safety contract for `from_raw_parts`.
125
125
unsafe{
126
-
ub_checks::assert_unsafe_precondition!(
126
+
ub_checks::assert_unsafe_precondition2!(
127
127
check_language_ub,
128
-
"slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`",
128
+
"slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX` (data:{data:?}, size:{size:?}, align:{align:?}, len:{len:?})",
// SAFETY: the caller must uphold the safety contract for `from_raw_parts_mut`.
179
179
unsafe{
180
-
ub_checks::assert_unsafe_precondition!(
180
+
ub_checks::assert_unsafe_precondition2!(
181
181
check_language_ub,
182
-
"slice::from_raw_parts_mut requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`",
182
+
"slice::from_raw_parts_mut requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX` (data:{data:?}, size:{size:?}, align:{align:?}, len:{len:?})",
0 commit comments