diff options
| author | Sebastian Dröge <sebastian@centricular.com> | 2021-02-04 10:40:20 +0200 |
|---|---|---|
| committer | Sebastian Dröge <sebastian@centricular.com> | 2021-02-04 11:31:31 +0200 |
| commit | f436630ac85504da5c6ef802dbee658fa97a6f37 (patch) | |
| tree | f813dff91d9f9e346f2d1f09143201e44eb72909 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | e708cbd91c9cae4426d69270248362b423324556 (diff) | |
| download | rust-f436630ac85504da5c6ef802dbee658fa97a6f37.tar.gz rust-f436630ac85504da5c6ef802dbee658fa97a6f37.zip | |
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
