Skip to content

Commit bfe9fcc

Browse files
author
arielb1
committed
---
yaml --- r: 227730 b: refs/heads/try c: 5133606 h: refs/heads/master v: v3
1 parent 808ff15 commit bfe9fcc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: ea7637ebc0e5d325ccf0537a8013316c2ed78108
4+
refs/heads/try: 51336064b1c640db9bb4e84a6f9b29b2d0a301f0
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/test/run-pass/cast-rfc0401.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fn main()
8888
assert_eq!(u as *const u8, p as *const u8);
8989
assert_eq!(u as *const u16, p as *const u16);
9090

91-
// ptr-ptr-cast (both vk=Length)
91+
// ptr-ptr-cast (Length vtables)
9292
let mut l : [u8; 2] = [0,1];
9393
let w: *mut [u16; 2] = &mut l as *mut [u8; 2] as *mut _;
9494
let w: *mut [u16] = unsafe {&mut *w};
@@ -99,7 +99,7 @@ fn main()
9999
let l_via_str = unsafe{&*(s as *const [u8])};
100100
assert_eq!(&l, l_via_str);
101101

102-
// ptr-ptr-cast (both vk=Length, check length is preserved)
102+
// ptr-ptr-cast (Length vtables, check length is preserved)
103103
let l: [[u8; 3]; 2] = [[3, 2, 6], [4, 5, 1]];
104104
let p: *const [[u8; 3]] = &l;
105105
let p: &[[u8; 2]] = unsafe {&*(p as *const [[u8; 2]])};

0 commit comments

Comments
 (0)