File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -292,13 +292,8 @@ macro_rules! foo { () => { println!(); } }
292
292
fn main() { foo!(); }
293
293
```
294
294
295
- In this code, the AST nodes that are finally generated would have hierarchy:
296
-
297
- ```
298
- root
299
- expn_id_foo
300
- expn_id_println
301
- ```
295
+ In this code, the AST nodes that are finally generated would have hierarchy
296
+ ` root -> id(foo) -> id(println) ` .
302
297
303
298
### The Macro Definition Hierarchy
304
299
@@ -397,8 +392,9 @@ macro foo($i: ident) { $i }
397
392
foo!(bar!(baz));
398
393
```
399
394
400
- For the ` baz ` AST node in the final output, the first hierarchy is `ROOT ->
401
- id(foo) -> id(bar) -> baz` , while the third hierarchy is ` ROOT -> baz`.
395
+ For the ` baz ` AST node in the final output, the expansion-order hierarchy is
396
+ ` ROOT -> id(foo) -> id(bar) -> baz ` , while the call-site hierarchy is `ROOT ->
397
+ baz`.
402
398
403
399
### Macro Backtraces
404
400
You can’t perform that action at this time.
0 commit comments