about summary refs log tree commit diff
path: root/library/std/src/sys/args/unsupported.rs
AgeCommit message (Collapse)AuthorLines
2025-05-01Delegate to inner `vec::IntoIter` from `env::ArgsOs`Thalia Archibald-6/+12
Delegate from `std::env::ArgsOs` to the methods of the inner platform-specific iterators, when it would be more efficient than just using the default methods of its own impl. Most platforms use `vec::IntoIter` as the inner type, so prioritize delegating to the methods it provides. `std::env::Args` is implemented atop `std::env::ArgsOs` and performs UTF-8 validation with a panic for invalid data. This is a visible effect which users certainly rely on, so we can't skip any arguments. Any further iterator methods would skip some elements, so no change is needed for that type. Add `#[inline]` for any methods which simply wrap the inner iterator.
2025-04-12Move args into std::sysThalia Archibald-0/+36