Skip to content

Commit af1d5fb

Browse files
committed
---
yaml --- r: 152498 b: refs/heads/try2 c: b612ae9 h: refs/heads/master v: v3
1 parent 1ccbb88 commit af1d5fb

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 00e1a6923773500f0d5b9bad64d05eb5d4a24c53
8+
refs/heads/try2: b612ae9edea26cb8704363c47a66d583b644ad09
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

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