about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2021-02-04 10:40:20 +0200
committerSebastian Dröge <sebastian@centricular.com>2021-02-04 11:31:31 +0200
commitf436630ac85504da5c6ef802dbee658fa97a6f37 (patch)
treef813dff91d9f9e346f2d1f09143201e44eb72909 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parente708cbd91c9cae4426d69270248362b423324556 (diff)
downloadrust-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