File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 1cc3fe567cfbddb5d68a6b884d77b3873ad74b6a
2
+ refs/heads/master: 54d34bec59f75e9675f8e79ca471e729763aff6d
Original file line number Diff line number Diff line change @@ -346,6 +346,8 @@ tag ty_ {
346
346
ty_obj(vec[ty_method]);
347
347
ty_path(path, ann);
348
348
ty_type;
349
+ ty_ivec(@ty); // interior vector
350
+ ty_istr; // interior string
349
351
ty_constr(@ty, vec[@constr]);
350
352
}
351
353
Original file line number Diff line number Diff line change @@ -485,6 +485,7 @@ fn parse_ty(&parser p) -> @ast::ty {
485
485
else if ( eat_word ( p, "uint" ) ) { t = ast:: ty_uint; }
486
486
else if ( eat_word ( p, "float" ) ) { t = ast:: ty_float; }
487
487
else if ( eat_word ( p, "str" ) ) { t = ast:: ty_str; }
488
+ else if ( eat_word ( p, "istr" ) ) { t = ast:: ty_istr; }
488
489
else if ( eat_word ( p, "char" ) ) { t = ast:: ty_char; }
489
490
else if ( eat_word ( p, "task" ) ) { t = ast:: ty_task; }
490
491
else if ( eat_word ( p, "i8" ) ) { t = ast:: ty_machine ( common:: ty_i8) ; }
@@ -570,6 +571,11 @@ fn parse_ty(&parser p) -> @ast::ty {
570
571
t = ast:: ty_chan ( parse_ty ( p) ) ;
571
572
hi = p. get_hi_pos ( ) ;
572
573
expect ( p, token:: RBRACKET ) ;
574
+ } else if ( eat_word ( p, "ivec" ) ) {
575
+ expect ( p, token:: LBRACKET ) ;
576
+ t = ast:: ty_ivec ( parse_ty ( p) ) ;
577
+ hi = p. get_hi_pos ( ) ;
578
+ expect ( p, token:: RBRACKET ) ;
573
579
} else if ( eat_word ( p, "mutable" ) ) {
574
580
p. get_session ( ) . span_warn ( p. get_span ( ) ,
575
581
"ignoring deprecated 'mutable' type constructor" ) ;
You can’t perform that action at this time.
0 commit comments