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:
commit
bd64d67d11
@ -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> {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user