File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ macro_rules! impl_minimal_iuf {
5353
5454 /// Extracts the value at `index`.
5555 ///
56- /// # Precondition
56+ /// # Safety
5757 ///
5858 /// If `index >= Self::lanes()` the behavior is undefined.
5959 #[ inline]
@@ -80,7 +80,7 @@ macro_rules! impl_minimal_iuf {
8080
8181 /// Returns a new vector where the value at `index` is replaced by `new_value`.
8282 ///
83- /// # Precondition
83+ /// # Safety
8484 ///
8585 /// If `index >= Self::lanes()` the behavior is undefined.
8686 #[ inline]
Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ macro_rules! impl_minimal_mask {
5858
5959 /// Extracts the value at `index`.
6060 ///
61+ /// # Safety
62+ ///
6163 /// If `index >= Self::lanes()` the behavior is undefined.
6264 #[ inline]
6365 pub unsafe fn extract_unchecked( self , index: usize ) -> bool {
@@ -85,9 +87,9 @@ macro_rules! impl_minimal_mask {
8587 /// Returns a new vector where the value at `index` is replaced by
8688 /// `new_value`.
8789 ///
88- /// # Panics
90+ /// # Safety
8991 ///
90- /// If `index >= Self::lanes()`.
92+ /// If `index >= Self::lanes()` the behavior is undefined .
9193 #[ inline]
9294 #[ must_use = "replace_unchecked does not modify the original value - \
9395 it returns a new vector with the value at `index` \
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ macro_rules! impl_slice_from_slice {
3838
3939 /// Instantiates a new vector with the values of the `slice`.
4040 ///
41- /// # Precondition
41+ /// # Safety
4242 ///
4343 /// If `slice.len() < Self::lanes()` or `&slice[0]` is not aligned
4444 /// to an `align_of::<Self>()` boundary, the behavior is undefined.
@@ -59,7 +59,7 @@ macro_rules! impl_slice_from_slice {
5959
6060 /// Instantiates a new vector with the values of the `slice`.
6161 ///
62- /// # Precondition
62+ /// # Safety
6363 ///
6464 /// If `slice.len() < Self::lanes()` the behavior is undefined.
6565 #[ inline]
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ macro_rules! impl_slice_write_to_slice {
3939
4040 /// Writes the values of the vector to the `slice`.
4141 ///
42- /// # Precondition
42+ /// # Safety
4343 ///
4444 /// If `slice.len() < Self::lanes()` or `&slice[0]` is not
4545 /// aligned to an `align_of::<Self>()` boundary, the behavior is
@@ -64,7 +64,7 @@ macro_rules! impl_slice_write_to_slice {
6464
6565 /// Writes the values of the vector to the `slice`.
6666 ///
67- /// # Precondition
67+ /// # Safety
6868 ///
6969 /// If `slice.len() < Self::lanes()` the behavior is undefined.
7070 #[ inline]
You can’t perform that action at this time.
0 commit comments