File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change 1
1
{{
2
2
call_a_or_b_on_tail!(
3
- (a: compute_len, b: zero),
4
- the recursive part that skips over all these
5
- tokens doesn't much care whether we will call a
6
- or call b: only the terminal rules care.
3
+ (a: compute_len, b: zero), call b: only the terminal rules care.
7
4
)
8
5
}}
9
6
{{
10
7
call_a_or_b_on_tail!(
11
- (a: compute_len, b: zero),
12
- and now, to justify the existence of two paths
13
- we will also call a: its input should somehow
14
- be self-referential, so let's make it return
15
- some ninety one!
8
+ (a: compute_len, b: zero), call a: some ninety one!
16
9
)
17
10
}}
18
11
{{
19
12
call_a_or_b_on_tail!(
20
- (a: compute_len, b: zero),
21
- and now, to justify the existence of two paths
22
- we will also call a: its input should somehow
23
- be self-referential, so let's make it return
24
- some ninety "(\"()"nine!
13
+ (a: compute_len, b: zero), call a: some ninety "(\"()"nine!
25
14
)
26
15
}}
Original file line number Diff line number Diff line change @@ -45,5 +45,5 @@ struct RustMacrosArgTemplate {}
45
45
#[ test]
46
46
fn args ( ) {
47
47
let template = RustMacrosArgTemplate { } ;
48
- assert_eq ! ( "0\n 91 \n 99 " , template. render( ) . unwrap( ) ) ;
48
+ assert_eq ! ( "0\n 17 \n 25 " , template. render( ) . unwrap( ) ) ;
49
49
}
You can’t perform that action at this time.
0 commit comments