Skip to content

Commit

Permalink
Remove nonsensical bit from comments
Browse files Browse the repository at this point in the history
  • Loading branch information
slightlyoutofphase committed Mar 11, 2020
1 parent 2408ec7 commit 9b49168
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,6 @@ impl<T, const N: usize> StaticVec<T, N> {
let start_ptr = self.as_ptr();
unsafe {
// `start_ptr` will never be null, so this is a safe assumption to give the optimizer.
// Note that this is something also done in the `iter()` method for slices, additionally.
intrinsics::assume(!is_null_const(start_ptr));
StaticVecIterConst {
start: start_ptr,
Expand All @@ -785,7 +784,6 @@ impl<T, const N: usize> StaticVec<T, N> {
let start_ptr = self.as_mut_ptr();
unsafe {
// `start_ptr` will never be null, so this is a safe assumption to give the optimizer.
// Note that this is something also done in the `iter_mut()` method for slices, additionally.
intrinsics::assume(!is_null_mut(start_ptr));
StaticVecIterMut {
start: start_ptr,
Expand Down

0 comments on commit 9b49168

Please sign in to comment.