File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
branches/try/src/rustc/metadata Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: da130598143841a726ac7818d65e1b6717cdebd9
5
+ refs/heads/try: 355422ddbd3fb9c44374059696f8111f9501ba10
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -179,7 +179,20 @@ fn parse_proto(c: char) -> ast::proto {
179
179
}
180
180
181
181
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
+ }
183
196
}
184
197
185
198
fn parse_substs ( st : @pstate , conv : conv_did ) -> ty:: substs {
You can’t perform that action at this time.
0 commit comments