Skip to content

Commit 40e9f5f

Browse files
committed
---
yaml --- r: 118431 b: refs/heads/try c: b612ae9 h: refs/heads/master i: 118429: 0700c05 118427: 8bda3eb 118423: 35086c6 118415: a6f77b6 118399: 3243d4c v: v3
1 parent 8bc03a3 commit 40e9f5f

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3770c42a4959cbabc73da52abc7e3db96657974e
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: d6736a1440d42f6af967a8a20ab8d73522112b72
5-
refs/heads/try: 00e1a6923773500f0d5b9bad64d05eb5d4a24c53
5+
refs/heads/try: b612ae9edea26cb8704363c47a66d583b644ad09
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libcore/any.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,14 @@ mod tests {
263263
let s = format!("{}", b);
264264
assert_eq!(s.as_slice(), "&Any");
265265
}
266+
267+
#[test]
268+
fn any_fixed_vec() {
269+
let test = [0u, ..8];
270+
let test = &test as &Any;
271+
assert!(test.is::<[uint, ..8]>());
272+
assert!(!test.is::<[uint, ..10]>());
273+
}
266274
}
267275

268276
#[cfg(test)]

branches/try/src/librustc/middle/ty.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4514,9 +4514,10 @@ pub fn hash_crate_independent(tcx: &ctxt, t: t, svh: &Svh) -> u64 {
45144514
ty_uniq(_) => {
45154515
byte!(10);
45164516
}
4517-
ty_vec(m, Some(_)) => {
4517+
ty_vec(m, Some(n)) => {
45184518
byte!(11);
45194519
mt(&mut state, m);
4520+
n.hash(&mut state);
45204521
1u8.hash(&mut state);
45214522
}
45224523
ty_vec(m, None) => {

0 commit comments

Comments
 (0)