Skip to content

Commit e1ff13e

Browse files
committed
---
yaml --- r: 92365 b: refs/heads/auto c: dd35570 h: refs/heads/master i: 92363: b4e5b03 v: v3
1 parent 8d2b106 commit e1ff13e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 8a5a5922c61cecd5f305a0cd54671dbf2f2a6519
16+
refs/heads/auto: dd355700cf4f1fa1744cdeb165b68898fa30a9d1
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libstd/vec.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2196,11 +2196,7 @@ impl<'a,T> MutableVector<'a, T> for &'a mut [T] {
21962196

21972197
#[inline]
21982198
unsafe fn init_elem(self, i: uint, val: T) {
2199-
let mut alloc = Some(val);
2200-
self.as_mut_buf(|p, _len| {
2201-
intrinsics::move_val_init(&mut(*ptr::mut_offset(p, i as int)),
2202-
alloc.take_unwrap());
2203-
})
2199+
intrinsics::move_val_init(&mut (*self.as_mut_ptr().offset(i as int)), val);
22042200
}
22052201

22062202
#[inline]

0 commit comments

Comments
 (0)