Skip to content

Commit 11e89f1

Browse files
committed
---
yaml --- r: 64116 b: refs/heads/snap-stage3 c: 59083d2 h: refs/heads/master v: v3
1 parent 4e53bc8 commit 11e89f1

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: af453a33cc4ec8773ce869c4564d713a7ba60775
4+
refs/heads/snap-stage3: 59083d2c6aedcbab469e263850c717cd958c24e6
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ pub unsafe fn set_memory<T>(dst: *mut T, c: u8, count: uint) {
143143
}
144144

145145
/**
146-
* Zeroes out `count` bytes of memory at `dst`
146+
* Zeroes out `count * size_of::<T>` bytes of memory at `dst`
147147
*/
148148
#[inline]
149149
#[cfg(not(stage0))]

branches/snap-stage3/src/rt/boxed_region.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ rust_opaque_box *boxed_region::malloc(type_desc *td, size_t body_size) {
3939
rust_opaque_box *boxed_region::realloc(rust_opaque_box *box,
4040
size_t new_size) {
4141

42-
// We also get called on the unique-vec-in-managed-heap path.
43-
// assert(box->ref_count == 1 ||
44-
// box->ref_count == (size_t)(-2));
45-
4642
size_t total_size = new_size + sizeof(rust_opaque_box);
4743
rust_opaque_box *new_box =
4844
(rust_opaque_box*)backing_region->realloc(box, total_size);

branches/snap-stage3/src/test/run-pass/borrowck-wg-autoderef-and-autoborrowvec-combined-issue-6272.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929

3030
fn main() {
3131
let a = @mut 3i;
32-
// let b = @mut [a];
33-
// let c = @mut [3];
32+
let b = @mut [a];
33+
let c = @mut [3];
3434

3535
// this should freeze `a` only
3636
let _x: &mut int = a;
3737

3838
// hence these writes should not fail:
39-
// b[0] = b[0];
40-
// c[0] = c[0];
39+
b[0] = b[0];
40+
c[0] = c[0];
4141
}

0 commit comments

Comments
 (0)