about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-16 03:45:26 +0000
committerbors <bors@rust-lang.org>2021-08-16 03:45:26 +0000
commit23461b210f1b0a121592a18fc4fb666106006668 (patch)
treec24c80d60ca3bbbe7812eef1a387e440a1d0e905 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent2a6fb9a4c0e5ca7a81999065943b211c226fe9d8 (diff)
parent7b28036c63245477ff6c2033da336302bfca770e (diff)
downloadrust-23461b210f1b0a121592a18fc4fb666106006668.tar.gz
rust-23461b210f1b0a121592a18fc4fb666106006668.zip
Auto merge of #87696 - ssomers:btree_lazy_iterator_cleanup, r=Mark-Simulacrum
BTree: merge the complication introduced by #81486 and #86031

Also:
- Deallocate the last few tree nodes as soon as an `into_iter` iterator steps beyond the end, instead of waiting around for the drop of the iterator (just to share more code).
- Symmetric code for backward iteration.
- Mark unsafe the methods on dying handles, modelling dying handles after raw pointers: it's the caller's responsibility to use them safely.

r? `@Mark-Simulacrum`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions