Skip to content

Commit 5b5ad53

Browse files
committed
---
yaml --- r: 15591 b: refs/heads/try c: 355422d h: refs/heads/master i: 15589: 5685280 15587: 61841e4 15583: 62455ac v: v3
1 parent 7f57bbf commit 5b5ad53

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: da130598143841a726ac7818d65e1b6717cdebd9
5+
refs/heads/try: 355422ddbd3fb9c44374059696f8111f9501ba10
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rustc/metadata/tydecode.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,20 @@ fn parse_proto(c: char) -> ast::proto {
179179
}
180180

181181
fn parse_vstore(st: @pstate) -> ty::vstore {
182-
st.tcx.sess.unimpl("tydecode::parse_vstore");
182+
assert next(st) == '/';
183+
184+
let c = peek(st);
185+
if '0' <= c && c <= '9' {
186+
let n = parse_int(st) as uint;
187+
assert next(st) == '|';
188+
ret ty::vstore_fixed(n);
189+
}
190+
191+
alt check next(st) {
192+
'~' { ty::vstore_uniq }
193+
'@' { ty::vstore_box }
194+
'&' { ty::vstore_slice(parse_region(st)) }
195+
}
183196
}
184197

185198
fn parse_substs(st: @pstate, conv: conv_did) -> ty::substs {

0 commit comments

Comments
 (0)