File tree 3 files changed +7
-2
lines changed 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
#![ feature( macro_rules) ]
2
2
#![ feature( phase) ]
3
+ #![ feature( associated_types) ]
3
4
#[ phase( plugin, link) ] extern crate log;
4
5
5
6
extern crate syntax;
Original file line number Diff line number Diff line change @@ -35,7 +35,9 @@ pub struct CodeIndicesIter<'a> {
35
35
state : State
36
36
}
37
37
38
- impl < ' a > Iterator < ( uint , uint ) > for CodeIndicesIter < ' a > {
38
+ impl < ' a > Iterator for CodeIndicesIter < ' a > {
39
+ type Item = ( uint , uint ) ;
40
+
39
41
#[ inline]
40
42
fn next ( & mut self ) -> Option < ( uint , uint ) > {
41
43
return match self . state {
Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ pub struct StmtIndicesIter<'a> {
19
19
enddelim : u8
20
20
}
21
21
22
- impl < ' a > Iterator < ( uint , uint ) > for StmtIndicesIter < ' a > {
22
+ impl < ' a > Iterator for StmtIndicesIter < ' a > {
23
+ type Item = ( uint , uint ) ;
24
+
23
25
#[ inline]
24
26
fn next ( & mut self ) -> Option < ( uint , uint ) > {
25
27
let semicolon: u8 = ";" . as_bytes ( ) [ 0 ] ;
You can’t perform that action at this time.
0 commit comments