@@ -68,7 +68,7 @@ macro_rules! impl_minimal_p {
68
68
69
69
/// Extracts the value at `index`.
70
70
///
71
- /// # Precondition
71
+ /// # Safety
72
72
///
73
73
/// If `index >= Self::lanes()` the behavior is undefined.
74
74
#[ inline]
@@ -96,7 +96,7 @@ macro_rules! impl_minimal_p {
96
96
97
97
/// Returns a new vector where the value at `index` is replaced by `new_value`.
98
98
///
99
- /// # Precondition
99
+ /// # Safety
100
100
///
101
101
/// If `index >= Self::lanes()` the behavior is undefined.
102
102
#[ inline]
@@ -215,7 +215,7 @@ macro_rules! impl_minimal_p {
215
215
f,
216
216
"{}<{}>(" ,
217
217
stringify!( $id) ,
218
- unsafe { crate :: intrinsics:: type_name:: <T >( ) }
218
+ crate :: intrinsics:: type_name:: <T >( )
219
219
) ?;
220
220
for i in 0 ..$elem_count {
221
221
if i > 0 {
@@ -611,7 +611,7 @@ macro_rules! impl_minimal_p {
611
611
612
612
/// Instantiates a new vector with the values of the `slice`.
613
613
///
614
- /// # Precondition
614
+ /// # Safety
615
615
///
616
616
/// If `slice.len() < Self::lanes()` or `&slice[0]` is not aligned
617
617
/// to an `align_of::<Self>()` boundary, the behavior is undefined.
@@ -624,7 +624,7 @@ macro_rules! impl_minimal_p {
624
624
625
625
/// Instantiates a new vector with the values of the `slice`.
626
626
///
627
- /// # Precondition
627
+ /// # Safety
628
628
///
629
629
/// If `slice.len() < Self::lanes()` the behavior is undefined.
630
630
#[ inline]
@@ -827,7 +827,7 @@ macro_rules! impl_minimal_p {
827
827
828
828
/// Writes the values of the vector to the `slice`.
829
829
///
830
- /// # Precondition
830
+ /// # Safety
831
831
///
832
832
/// If `slice.len() < Self::lanes()` or `&slice[0]` is not
833
833
/// aligned to an `align_of::<Self>()` boundary, the behavior is
@@ -843,7 +843,7 @@ macro_rules! impl_minimal_p {
843
843
844
844
/// Writes the values of the vector to the `slice`.
845
845
///
846
- /// # Precondition
846
+ /// # Safety
847
847
///
848
848
/// If `slice.len() < Self::lanes()` the behavior is undefined.
849
849
#[ inline]
@@ -1151,7 +1151,7 @@ macro_rules! impl_minimal_p {
1151
1151
/// As such, memory acquired directly from allocators or memory
1152
1152
/// mapped files may be too large to handle with this function.
1153
1153
///
1154
- /// Consider using wrapping_offset_from instead if these constraints
1154
+ /// Consider using ` wrapping_offset_from` instead if these constraints
1155
1155
/// are difficult to satisfy. The only advantage of this method is
1156
1156
/// that it enables more aggressive compiler optimizations.
1157
1157
#[ inline]
0 commit comments