about summary refs log tree commit diff
path: root/library/core/src/slice/iter/macros.rs
AgeCommit message (Expand)AuthorLines
2025-02-23rename sub_ptr 😅bendn-1/+1
2025-02-14Add real safety commentsScott McMurray-1/+14
2025-02-14Go back to `Some` instead of transmuting to it.Scott McMurray-1/+1
2025-02-14Save another BB by using `SubUnchecked` instead of a call to `arith_offset`Scott McMurray-4/+4
2025-02-14Simplify `slice::Iter::next` enough that it inlinesScott McMurray-6/+16
2025-02-12`transmute` should also assume non-null pointersScott McMurray-1/+1
2024-09-25Use `&raw` in the standard libraryJosh Stone-3/+3
2024-06-19Shrink some slice iterator MIRScott McMurray-2/+4
2024-04-25Convert some iter macros to normal functionsScott McMurray-21/+20
2024-02-15Replace `NonZero::<_>::new` with `NonZero::new`.Markus Reiter-2/+2
2024-02-15Use generic `NonZero` internally.Markus Reiter-4/+4
2024-01-13libs: use `assert_unchecked` instead of intrinsicjoboet-2/+2
2023-07-20Get `!nonnull` metadata consistently in slice iterators, without needing `ass...Scott McMurray-67/+79
2023-06-14use indexed loop instead of ptr bumpingThe 8472-10/+20
2023-06-12optimize slice::Iter::foldThe 8472-0/+23
2023-05-10Simplify the implementation of iterators over slices of ZSTsScott McMurray-24/+33
2023-05-06Remove some `assume`s from slice iterators that don't do anythingScott McMurray-10/+6
2023-04-28replace version placeholdersPietro Albini-1/+1
2023-04-21More `IS_ZST` in `library`Scott McMurray-1/+1
2023-03-27replace advance_by returning usize with Result<(), NonZeroUsize>The 8472-4/+4
2023-03-27Change advance(_back)_by to return `usize` instead of `Result<(), usize>`The 8472-4/+4
2023-02-28rewrite iterator `Default` tests as doctestsThe 8472-0/+7
2023-02-28Implement Default for some alloc/core iteratorsThe 8472-0/+7
2023-02-04Allow canonicalizing the `array::map` loop in trusted casesScott McMurray-0/+9
2023-01-15replace manual ptr arithmetic with ptr_subThe 8472-16/+6
2023-01-14Remove various double spaces in source comments.André Vennberg-1/+1
2022-09-22Make ZST checks in core/alloc more readableScott McMurray-4/+4
2022-09-04remove some integer casts from slice iterMaybe Waffle-9/+9
2022-08-23Make use of `[wrapping_]byte_{add,sub}`Maybe Waffle-1/+1
2022-05-08Warn on unused doc(hidden) on trait impl itemsLeón Orell Valerian Liehr-1/+0
2022-05-02This aligns the inline attributes of existing `__iterator_get_unchecked` with...The 8472-0/+1
2022-03-29cleanup some of the less terrifying library codeAria Beingessner-1/+1
2022-03-29Make the stdlib largely conform to strict provenance.Aria Beingessner-2/+2
2021-08-03#[inline] slice::advance_byThe8472-2/+3
2021-07-22Fix whitespaceTim Vermeulen-2/+1
2021-07-22Add testsTim Vermeulen-2/+2
2021-07-22Implement slice::{Iter, IterMut}::{advance_by, advance_back_by}Tim Vermeulen-0/+16
2020-09-25Rename Iterator::get_uncheckedMatthew Jasper-1/+1
2020-09-14Move iterator impls to a new moduleLzu Tao-0/+407