about summary refs log tree commit diff
path: root/docs/dev
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-09-02 17:14:23 +0000
committerGitHub <noreply@github.com>2021-09-02 17:14:23 +0000
commit796bfccac4215fc753f805cc61bb87a64a06b5f6 (patch)
tree236560cd88fe61d305fe3a6c273f8b2219bef2d3 /docs/dev
parent2aee17e556743aa16643f5efe74347b06fc563a5 (diff)
parent0fee14bfddcf13f370c356b94d098dea7dca378d (diff)
downloadrust-796bfccac4215fc753f805cc61bb87a64a06b5f6.tar.gz
rust-796bfccac4215fc753f805cc61bb87a64a06b5f6.zip
Merge #10127
10127: fix: When descending tokens don't bail on failed macro call expansions r=Veykril a=Veykril

(with `#[test]` expansion enabled)
![image](https://user-images.githubusercontent.com/3757771/131887786-ced9988b-80fa-4e8f-b114-337572950cc3.png)

The problem was pretty simple, since we go through the ancestors we first try to expand the macro call node we are in since in attributed items these are valid syntaxnodes instead of TokenTrees, we then fail the expansion since the expansion only exists in the attribute expanded file and therefor skip the attribute expansion due to returning immediately. So instead of breaking out we just continue looking up the ancestors.

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/10115
bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Diffstat (limited to 'docs/dev')
0 files changed, 0 insertions, 0 deletions