We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da13059 commit 355422dCopy full SHA for 355422d
src/rustc/metadata/tydecode.rs
@@ -179,7 +179,20 @@ fn parse_proto(c: char) -> ast::proto {
179
}
180
181
fn parse_vstore(st: @pstate) -> ty::vstore {
182
- st.tcx.sess.unimpl("tydecode::parse_vstore");
+ 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
196
197
198
fn parse_substs(st: @pstate, conv: conv_did) -> ty::substs {
0 commit comments