@@ -567,7 +567,7 @@ impl<'a, K: 'a, V: 'a, Type> NodeRef<marker::Immut<'a>, K, V, Type> {
567
567
// the node, which is allowed by LLVM.
568
568
unsafe {
569
569
slice:: from_raw_parts (
570
- self . as_leaf ( ) . keys . get_ref ( ) . as_ptr ( ) ,
570
+ self . as_leaf ( ) . keys . as_ptr ( ) as * const K ,
571
571
self . len ( )
572
572
)
573
573
}
@@ -578,7 +578,7 @@ impl<'a, K: 'a, V: 'a, Type> NodeRef<marker::Immut<'a>, K, V, Type> {
578
578
debug_assert ! ( !self . is_shared_root( ) ) ;
579
579
unsafe {
580
580
slice:: from_raw_parts (
581
- self . as_leaf ( ) . vals . get_ref ( ) . as_ptr ( ) ,
581
+ self . as_leaf ( ) . vals . as_ptr ( ) as * const V ,
582
582
self . len ( )
583
583
)
584
584
}
@@ -1152,12 +1152,12 @@ impl<'a, K, V> Handle<NodeRef<marker::Mut<'a>, K, V, marker::Leaf>, marker::KV>
1152
1152
1153
1153
ptr:: copy_nonoverlapping (
1154
1154
self . node . keys ( ) . as_ptr ( ) . add ( self . idx + 1 ) ,
1155
- new_node. keys . get_mut ( ) . as_mut_ptr ( ) ,
1155
+ new_node. keys . as_mut_ptr ( ) as * mut K ,
1156
1156
new_len
1157
1157
) ;
1158
1158
ptr:: copy_nonoverlapping (
1159
1159
self . node . vals ( ) . as_ptr ( ) . add ( self . idx + 1 ) ,
1160
- new_node. vals . get_mut ( ) . as_mut_ptr ( ) ,
1160
+ new_node. vals . as_mut_ptr ( ) as * mut V ,
1161
1161
new_len
1162
1162
) ;
1163
1163
@@ -1210,12 +1210,12 @@ impl<'a, K, V> Handle<NodeRef<marker::Mut<'a>, K, V, marker::Internal>, marker::
1210
1210
1211
1211
ptr:: copy_nonoverlapping (
1212
1212
self . node . keys ( ) . as_ptr ( ) . add ( self . idx + 1 ) ,
1213
- new_node. data . keys . get_mut ( ) . as_mut_ptr ( ) ,
1213
+ new_node. data . keys . as_mut_ptr ( ) as * mut K ,
1214
1214
new_len
1215
1215
) ;
1216
1216
ptr:: copy_nonoverlapping (
1217
1217
self . node . vals ( ) . as_ptr ( ) . add ( self . idx + 1 ) ,
1218
- new_node. data . vals . get_mut ( ) . as_mut_ptr ( ) ,
1218
+ new_node. data . vals . as_mut_ptr ( ) as * mut V ,
1219
1219
new_len
1220
1220
) ;
1221
1221
ptr:: copy_nonoverlapping (
0 commit comments