Skip to content

Commit 8e78f74

Browse files
author
arielb1
committed
---
yaml --- r: 214262 b: refs/heads/auto c: 5133606 h: refs/heads/master v: v3
1 parent 9e39efa commit 8e78f74

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
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: ea7637ebc0e5d325ccf0537a8013316c2ed78108
11+
refs/heads/auto: 51336064b1c640db9bb4e84a6f9b29b2d0a301f0
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/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)