File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
branches/snap-stage3/src/libstd/io Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 0ba9e1fa52627404a1e5b90f745f96a872a0c564
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 3ac862816fc57fb6047986624d98f986cbfd40b9
4
+ refs/heads/snap-stage3: fb6b970bf8d12182a69b1e7ae222f3e2ebbb9003
5
5
refs/heads/try: ccf8fedf1cffcb8f6f3581d53d220039e192fe77
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ use error::Error as StdError;
24
24
use fmt;
25
25
use iter:: Iterator ;
26
26
use marker:: Sized ;
27
- use mem;
28
27
use ops:: { Drop , FnOnce } ;
29
28
use option:: Option :: { self , Some , None } ;
30
29
use ptr:: PtrExt ;
@@ -69,8 +68,8 @@ fn with_end_to_cap<F>(v: &mut Vec<u8>, f: F) -> Result<usize>
69
68
unsafe {
70
69
let n = try!( f ( {
71
70
let base = v. as_mut_ptr ( ) . offset ( v. len ( ) as isize ) ;
72
- black_box ( slice:: from_raw_mut_buf ( mem :: copy_lifetime ( v , & base) ,
73
- v. capacity ( ) - v. len ( ) ) )
71
+ black_box ( slice:: from_raw_parts_mut ( base,
72
+ v. capacity ( ) - v. len ( ) ) )
74
73
} ) ) ;
75
74
76
75
// If the closure (typically a `read` implementation) reported that it
You can’t perform that action at this time.
0 commit comments