diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2017-12-22 23:46:52 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2018-01-20 11:09:23 +0100 |
| commit | 1772fa2aa1262e5efae8172bbd9154a937269eb7 (patch) | |
| tree | f9ba4b85556f9086671ed9024796568f0b288d73 /src/liballoc/linked_list.rs | |
| parent | 55c50cd8ac5ed5a799bc9f5aa1fe8fcfbb956706 (diff) | |
| download | rust-1772fa2aa1262e5efae8172bbd9154a937269eb7.tar.gz rust-1772fa2aa1262e5efae8172bbd9154a937269eb7.zip | |
Rename Box::*_nonnull_raw to *_non_null_raw
Diffstat (limited to 'src/liballoc/linked_list.rs')
| -rw-r--r-- | src/liballoc/linked_list.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/linked_list.rs b/src/liballoc/linked_list.rs index 4c4a00e53fa..8ec0110060a 100644 --- a/src/liballoc/linked_list.rs +++ b/src/liballoc/linked_list.rs @@ -157,7 +157,7 @@ impl<T> LinkedList<T> { unsafe { node.next = self.head; node.prev = None; - let node = Some(Box::into_nonnull_raw(node)); + let node = Some(Box::into_non_null_raw(node)); match self.head { None => self.tail = node, @@ -192,7 +192,7 @@ impl<T> LinkedList<T> { unsafe { node.next = None; node.prev = self.tail; - let node = Some(Box::into_nonnull_raw(node)); + let node = Some(Box::into_non_null_raw(node)); match self.tail { None => self.head = node, @@ -986,7 +986,7 @@ impl<'a, T> IterMut<'a, T> { Some(prev) => prev, }; - let node = Some(Box::into_nonnull_raw(box Node { + let node = Some(Box::into_non_null_raw(box Node { next: Some(head), prev: Some(prev), element, |
