Rollup merge of #100203 - compiler-errors:command-args-size-hint, r=m-ou-se

provide correct size hint for unsupported platform `CommandArgs`

Split from https://github.com/rust-lang/rust/pull/99880#discussion_r932994172
This commit is contained in:
Matthias Krüger 2022-08-11 22:53:04 +02:00 committed by GitHub
commit bd64d67d11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,6 +200,9 @@ impl<'a> Iterator for CommandArgs<'a> {
fn next(&mut self) -> Option<&'a OsStr> {
None
}
fn size_hint(&self) -> (usize, Option<usize>) {
(0, Some(0))
}
}
impl<'a> ExactSizeIterator for CommandArgs<'a> {}