about summary refs log tree commit diff
path: root/tests/rustdoc/source-code-pages/html-no-source.rs
diff options
context:
space:
mode:
authorThalia Archibald <thalia@archibald.dev>2025-04-12 06:18:53 -0700
committerThalia Archibald <thalia@archibald.dev>2025-05-01 15:18:15 -0700
commit28deaa6e0e7993f963b3bb44bb235c7682ce0cf3 (patch)
tree8001060a0da0b273e6729e2bc16924d3b38aea54 /tests/rustdoc/source-code-pages/html-no-source.rs
parent0c33fe2c3d3eecadd17a84b110bb067288a64f1c (diff)
downloadrust-28deaa6e0e7993f963b3bb44bb235c7682ce0cf3.tar.gz
rust-28deaa6e0e7993f963b3bb44bb235c7682ce0cf3.zip
Delegate to inner `vec::IntoIter` from `env::ArgsOs`
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.
Diffstat (limited to 'tests/rustdoc/source-code-pages/html-no-source.rs')
0 files changed, 0 insertions, 0 deletions