File tree 3 files changed +9
-3
lines changed 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 9769b612261d6000b969ce466c4033f8445d3474
2
+ refs/heads/master: 78ec07790a90813cf4f42df0246ea9c27892745f
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import util.common.spanned;
7
7
import util. common . ty_mach ;
8
8
9
9
type ident = str ;
10
- type ty_param = ident ;
11
10
12
11
type name_ = rec ( ident ident, vec[ @ty] types ) ;
13
12
type name = spanned[ name_ ] ;
@@ -17,6 +16,8 @@ type crate_num = int;
17
16
type def_num = int ;
18
17
type def_id = tup ( crate_num , def_num ) ;
19
18
19
+ type ty_param = rec ( ident ident, def_id id) ;
20
+
20
21
// Annotations added during successive passes.
21
22
tag ann {
22
23
ann_none;
Original file line number Diff line number Diff line change @@ -1039,10 +1039,15 @@ impure fn parse_block(parser p) -> ast.block {
1039
1039
ret spanned( stmts. span , stmts. span , b) ;
1040
1040
}
1041
1041
1042
+ impure fn parse_ty_param ( parser p) -> ast. ty_param {
1043
+ auto ident = parse_ident ( p) ;
1044
+ ret rec ( ident=ident, id=p. next_def_id ( ) ) ;
1045
+ }
1046
+
1042
1047
impure fn parse_ty_params ( parser p) -> vec [ ast. ty_param ] {
1043
1048
let vec[ ast. ty_param ] ty_params = vec ( ) ;
1044
1049
if ( p. peek ( ) == token. LBRACKET ) {
1045
- auto f = parse_ident ; // FIXME: pass as lval directly
1050
+ auto f = parse_ty_param ; // FIXME: pass as lval directly
1046
1051
ty_params = parse_seq[ ast. ty_param ] ( token. LBRACKET , token. RBRACKET ,
1047
1052
some ( token. COMMA ) , f, p) . node ;
1048
1053
}
You can’t perform that action at this time.
0 commit comments