rust/library/core
Guillaume Gomez f706216251
Rollup merge of #81742 - sdroege:exact-size-iterator-correctness, r=kennytm
Add a note about the correctness and the effect on unsafe code to the `ExactSizeIterator` docs

As it is a safe trait it does not provide any guarantee that the
returned length is correct and as such unsafe code must not rely on it.

That's why `TrustedLen` exists.

Fixes https://github.com/rust-lang/rust/issues/81739
2021-02-07 14:45:51 +01:00
..
benches Add more benchmarks 2021-01-08 09:50:35 +00:00
src Rollup merge of #81742 - sdroege:exact-size-iterator-correctness, r=kennytm 2021-02-07 14:45:51 +01:00
tests Rollup merge of #80011 - Stupremee:stabilize-peekable-next-if, r=dtolnay 2021-02-06 00:14:06 +01:00
Cargo.toml