diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-09-02 17:14:23 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-02 17:14:23 +0000 |
| commit | 796bfccac4215fc753f805cc61bb87a64a06b5f6 (patch) | |
| tree | 236560cd88fe61d305fe3a6c273f8b2219bef2d3 /docs/dev | |
| parent | 2aee17e556743aa16643f5efe74347b06fc563a5 (diff) | |
| parent | 0fee14bfddcf13f370c356b94d098dea7dca378d (diff) | |
| download | rust-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)  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
