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
// `t` is inferred to have type `T` because it's assigned to `e` (of
3955
3959
// type `&T`) as `&t`.
3956
-
letmut t = unreachable!();
3960
+
letmut t = loop{};
3957
3961
e = &t;
3958
3962
3959
3963
// `u` is inferred to have type `U` because it's used as `&u` as the
@@ -5326,7 +5330,7 @@ impl<'a> sealed::ByteSliceSealed for cell::Ref<'a, [u8]> {}
5326
5330
#[allow(clippy::undocumented_unsafe_blocks)]
5327
5331
unsafeimpl<'a>ByteSlicefor cell::Ref<'a,[u8]>{
5328
5332
constINTO_REF_INTO_MUT_ARE_SOUND:bool = if !cfg!(doc){
5329
-
panic!("Ref::into_ref and Ref::into_mut are unsound when used with core::cell::Ref; see https://github.com/google/zerocopy/issues/716")
5333
+
const_panic!("Ref::into_ref and Ref::into_mut are unsound when used with core::cell::Ref; see https://github.com/google/zerocopy/issues/716")
5330
5334
}else{
5331
5335
// When compiling documentation, allow the evaluation of this constant
5332
5336
// to succeed. This doesn't represent a soundness hole - it just delays
@@ -5346,7 +5350,7 @@ impl<'a> sealed::ByteSliceSealed for RefMut<'a, [u8]> {}
5346
5350
#[allow(clippy::undocumented_unsafe_blocks)]
5347
5351
unsafeimpl<'a>ByteSliceforRefMut<'a,[u8]>{
5348
5352
constINTO_REF_INTO_MUT_ARE_SOUND:bool = if !cfg!(doc){
5349
-
panic!("Ref::into_ref and Ref::into_mut are unsound when used with core::cell::RefMut; see https://github.com/google/zerocopy/issues/716")
5353
+
const_panic!("Ref::into_ref and Ref::into_mut are unsound when used with core::cell::RefMut; see https://github.com/google/zerocopy/issues/716")
5350
5354
}else{
5351
5355
// When compiling documentation, allow the evaluation of this constant
5352
5356
// to succeed. This doesn't represent a soundness hole - it just delays
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertIsFromBytes`
25
-
= note: this error originates in the macro `$crate::transmute` which comes from the expansion of the macro `include_value` (in Nightly builds, run with -Z macro-backtrace for more info)
Copy file name to clipboardExpand all lines: tests/ui-stable/include_value_wrong_size.stderr
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,4 +6,4 @@ error[E0512]: cannot transmute between types of different sizes, or dependently-
6
6
|
7
7
= note: source type: `[u8; 4]` (32 bits)
8
8
= note: target type: `u64` (64 bits)
9
-
= note: this error originates in the macro `$crate::transmute` which comes from the expansion of the macro `include_value` (in Nightly builds, run with -Z macro-backtrace for more info)
9
+
= note: this error originates in the macro `$crate::transmute` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments