@@ -94,7 +94,7 @@ impl<Idx: ZeroCopy + SerializeInner + TypeHash + AlignHash> SerializeInner
94
94
}
95
95
}
96
96
97
- impl < Idx : ZeroCopy + DeserializeInner > DeserializeInner for core:: ops:: Range < Idx > {
97
+ unsafe impl < Idx : ZeroCopy + DeserializeInner > DeserializeInner for core:: ops:: Range < Idx > {
98
98
#[ inline( always) ]
99
99
unsafe fn _deserialize_full_inner ( backend : & mut impl ReadWithPos ) -> deser:: Result < Self > {
100
100
let start = Idx :: _deserialize_full_inner ( backend) ?;
@@ -126,7 +126,7 @@ impl<Idx: ZeroCopy + SerializeInner + TypeHash + AlignHash> SerializeInner
126
126
}
127
127
}
128
128
129
- impl < Idx : ZeroCopy + DeserializeInner > DeserializeInner for core:: ops:: RangeFrom < Idx > {
129
+ unsafe impl < Idx : ZeroCopy + DeserializeInner > DeserializeInner for core:: ops:: RangeFrom < Idx > {
130
130
#[ inline( always) ]
131
131
unsafe fn _deserialize_full_inner ( backend : & mut impl ReadWithPos ) -> deser:: Result < Self > {
132
132
let start = Idx :: _deserialize_full_inner ( backend) ?;
@@ -158,7 +158,7 @@ impl<Idx: ZeroCopy + SerializeInner + TypeHash + AlignHash> SerializeInner
158
158
}
159
159
}
160
160
161
- impl < Idx : ZeroCopy + DeserializeInner > DeserializeInner for core:: ops:: RangeInclusive < Idx > {
161
+ unsafe impl < Idx : ZeroCopy + DeserializeInner > DeserializeInner for core:: ops:: RangeInclusive < Idx > {
162
162
#[ inline( always) ]
163
163
unsafe fn _deserialize_full_inner ( backend : & mut impl ReadWithPos ) -> deser:: Result < Self > {
164
164
let start = Idx :: _deserialize_full_inner ( backend) ?;
@@ -194,7 +194,7 @@ impl<Idx: ZeroCopy + SerializeInner + TypeHash + AlignHash> SerializeInner
194
194
}
195
195
}
196
196
197
- impl < Idx : ZeroCopy + DeserializeInner > DeserializeInner for core:: ops:: RangeTo < Idx > {
197
+ unsafe impl < Idx : ZeroCopy + DeserializeInner > DeserializeInner for core:: ops:: RangeTo < Idx > {
198
198
#[ inline( always) ]
199
199
unsafe fn _deserialize_full_inner ( backend : & mut impl ReadWithPos ) -> deser:: Result < Self > {
200
200
let end = Idx :: _deserialize_full_inner ( backend) ?;
@@ -224,7 +224,7 @@ impl<Idx: ZeroCopy + SerializeInner + TypeHash + AlignHash> SerializeInner
224
224
}
225
225
}
226
226
227
- impl < Idx : ZeroCopy + DeserializeInner > DeserializeInner for core:: ops:: RangeToInclusive < Idx > {
227
+ unsafe impl < Idx : ZeroCopy + DeserializeInner > DeserializeInner for core:: ops:: RangeToInclusive < Idx > {
228
228
#[ inline( always) ]
229
229
unsafe fn _deserialize_full_inner ( backend : & mut impl ReadWithPos ) -> deser:: Result < Self > {
230
230
let end = Idx :: _deserialize_full_inner ( backend) ?;
@@ -251,7 +251,7 @@ impl SerializeInner for core::ops::RangeFull {
251
251
}
252
252
}
253
253
254
- impl DeserializeInner for core:: ops:: RangeFull {
254
+ unsafe impl DeserializeInner for core:: ops:: RangeFull {
255
255
#[ inline( always) ]
256
256
unsafe fn _deserialize_full_inner ( _backend : & mut impl ReadWithPos ) -> deser:: Result < Self > {
257
257
Ok ( core:: ops:: RangeFull )
@@ -301,7 +301,7 @@ impl<T: SerializeInner + TypeHash + AlignHash> SerializeInner for core::ops::Bou
301
301
}
302
302
}
303
303
304
- impl < T : DeserializeInner > DeserializeInner for core:: ops:: Bound < T > {
304
+ unsafe impl < T : DeserializeInner > DeserializeInner for core:: ops:: Bound < T > {
305
305
#[ inline( always) ]
306
306
unsafe fn _deserialize_full_inner ( backend : & mut impl ReadWithPos ) -> deser:: Result < Self > {
307
307
let tag = u8:: _deserialize_full_inner ( backend) ?;
@@ -376,7 +376,7 @@ impl<B: SerializeInner + TypeHash + AlignHash, C: SerializeInner + TypeHash + Al
376
376
}
377
377
}
378
378
379
- impl < B : DeserializeInner , C : DeserializeInner > DeserializeInner for core:: ops:: ControlFlow < B , C > {
379
+ unsafe impl < B : DeserializeInner , C : DeserializeInner > DeserializeInner for core:: ops:: ControlFlow < B , C > {
380
380
#[ inline( always) ]
381
381
unsafe fn _deserialize_full_inner ( backend : & mut impl ReadWithPos ) -> deser:: Result < Self > {
382
382
let tag = u8:: _deserialize_full_inner ( backend) ?;
0 commit comments