File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 230b279b8217f2271c23eeb3d8e4e2e0b1af1fa9
2
+ refs/heads/master: b0278f5315be8410d8fa93d83cb0de0ea0af1ed4
Original file line number Diff line number Diff line change @@ -796,7 +796,7 @@ mod unsafe {
796
796
modifing its buffers, so it is up to the caller to ensure that
797
797
the vector is actually the specified size.
798
798
*/
799
- unsafe fn set_len < T > ( & v: [ T ] , new_len : uint ) {
799
+ unsafe fn set_len < T > ( & v: [ mutable? T ] , new_len : uint ) {
800
800
let repr: * * vec_repr = :: unsafe:: reinterpret_cast ( addr_of ( v) ) ;
801
801
( * * repr) . fill = new_len * sys:: size_of :: < T > ( ) ;
802
802
}
@@ -812,7 +812,7 @@ mod unsafe {
812
812
Modifying the vector may cause its buffer to be reallocated, which
813
813
would also make any pointers to it invalid.
814
814
*/
815
- unsafe fn to_ptr < T > ( v : [ T ] ) -> * T {
815
+ unsafe fn to_ptr < T > ( v : [ mutable? T ] ) -> * T {
816
816
let repr: * * vec_repr = :: unsafe:: reinterpret_cast ( addr_of ( v) ) ;
817
817
ret :: unsafe:: reinterpret_cast ( addr_of ( ( * * repr) . data ) ) ;
818
818
}
You can’t perform that action at this time.
0 commit comments