diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-09-09 09:45:00 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-09-09 09:45:00 +0100 |
commit | 734a43e95afc97773c234956a95b78caed88f2a3 (patch) | |
tree | e7fd1ed3cd7cf00f36541c33c84ce4a2ac6559e5 /docs/user | |
parent | 1db08a54c20c244718e2378272c72ae5c6651f06 (diff) | |
parent | f3cbdb07c56fcfab1d65488836caafc1f395a0d1 (diff) |
Merge #1793
1793: Fix outer doc-comments of `macro_rules` r=matklad a=uHOOCCOOHu
Document comments of `macro_rules!` is currently parsed outside the `MACRO_CALL` node,
which makes `DocCommentsOwner::doc_comments()` always empty.
For the input:
```rust
/// Some docs
macro_rules! foo {
() => {};
}
```
Current parsing tree is:
```
SOURCE_FILE
COMMENT // <- This should be children of MACRO_CALL
WHITESPACE
MACRO_CALL
PATH
<...omitted...>
```
It should be:
```
SOURCE_FILE
MACRO_CALL
COMMENT
WHITESPACE
PATH
<...omitted...>
```
Co-authored-by: uHOOCCOOHu <[email protected]>
Diffstat (limited to 'docs/user')
0 files changed, 0 insertions, 0 deletions