about summary refs log tree commit diff
path: root/library/core
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-10-08 23:32:02 +0200
committerGitHub <noreply@github.com>2022-10-08 23:32:02 +0200
commite6f6ad0576d6488770c54176de029520caebb88d (patch)
treec75b9ddb845422889fc740e6cfd8a872aea52bc6 /library/core
parent3c2356767c98d17a218fe2a98ca47b1ad162fe7c (diff)
parent8abcd4d23538aa1e4c1164bca2c96ce0d7eb57ed (diff)
downloadrust-e6f6ad0576d6488770c54176de029520caebb88d.tar.gz
rust-e6f6ad0576d6488770c54176de029520caebb88d.zip
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?
Diffstat (limited to 'library/core')
-rw-r--r--library/core/src/slice/ascii.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/library/core/src/slice/ascii.rs b/library/core/src/slice/ascii.rs
index 63715a6b86b..5e5399acc1b 100644
--- a/library/core/src/slice/ascii.rs
+++ b/library/core/src/slice/ascii.rs
@@ -215,8 +215,6 @@ impl<'a> iter::DoubleEndedIterator for EscapeAscii<'a> {
     }
 }
 #[stable(feature = "inherent_ascii_escape", since = "1.60.0")]
-impl<'a> iter::ExactSizeIterator for EscapeAscii<'a> {}
-#[stable(feature = "inherent_ascii_escape", since = "1.60.0")]
 impl<'a> iter::FusedIterator for EscapeAscii<'a> {}
 #[stable(feature = "inherent_ascii_escape", since = "1.60.0")]
 impl<'a> fmt::Display for EscapeAscii<'a> {