about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-06-06 18:40:11 +0000
committerbors <bors@rust-lang.org>2015-06-06 18:40:11 +0000
commit98f6e40b6e7ddcc6c6b745aac1bd45c2b8aa343f (patch)
tree668a2d78175ae0764f12e1c8b200802889b24436 /src/rustllvm/RustWrapper.cpp
parentbfd072db45d07a7c0ed2248737ef3c61131729fc (diff)
parent32037a5696272f1c34f3692dcdc59b4ada91bdc7 (diff)
downloadrust-98f6e40b6e7ddcc6c6b745aac1bd45c2b8aa343f.tar.gz
rust-98f6e40b6e7ddcc6c6b745aac1bd45c2b8aa343f.zip
Auto merge of #26050 - bluss:linked-list, r=Gankro
The recent bug that was found in LinkedList reminded me of some general cleanup
that's been waiting for some time.

- Use a loop from the front in Drop, it works just as well and without an unsafe block
- Change Rawlink methods to use `unsafe` in an idiomatic way. This does mean that
we need an unsafe block for each dereference of a raw link. Even then, the extent
of unsafe-critical code is even larger of course, since safety depends on the whole
data structure's integrity. This is a general problem we are aware of.
- Some cleanup just to try to decrease the amount of Rawlink handling.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions