diff options
| author | bors <bors@rust-lang.org> | 2015-06-06 18:40:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-06-06 18:40:11 +0000 |
| commit | 98f6e40b6e7ddcc6c6b745aac1bd45c2b8aa343f (patch) | |
| tree | 668a2d78175ae0764f12e1c8b200802889b24436 /src/rustllvm/RustWrapper.cpp | |
| parent | bfd072db45d07a7c0ed2248737ef3c61131729fc (diff) | |
| parent | 32037a5696272f1c34f3692dcdc59b4ada91bdc7 (diff) | |
| download | rust-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
