Skip to content

Commit e6f6ad0

Browse files
authored
Rollup merge of #99880 - compiler-errors:escape-ascii-is-not-exact-size-iterator, r=thomcc
`EscapeAscii` is not an `ExactSizeIterator` Fixes #99878 Do we want/need `EscapeAscii` to be an `ExactSizeIterator`? I guess we could precompute the length of the output if so?
2 parents 3c23567 + 8abcd4d commit e6f6ad0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

library/core/src/slice/ascii.rs

-2
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ impl<'a> iter::DoubleEndedIterator for EscapeAscii<'a> {
215215
}
216216
}
217217
#[stable(feature = "inherent_ascii_escape", since = "1.60.0")]
218-
impl<'a> iter::ExactSizeIterator for EscapeAscii<'a> {}
219-
#[stable(feature = "inherent_ascii_escape", since = "1.60.0")]
220218
impl<'a> iter::FusedIterator for EscapeAscii<'a> {}
221219
#[stable(feature = "inherent_ascii_escape", since = "1.60.0")]
222220
impl<'a> fmt::Display for EscapeAscii<'a> {

0 commit comments

Comments
 (0)