]> git.lizzy.rs Git - rust.git/commitdiff
Merge #5956
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Thu, 10 Sep 2020 20:55:06 +0000 (20:55 +0000)
committerGitHub <noreply@github.com>
Thu, 10 Sep 2020 20:55:06 +0000 (20:55 +0000)
5956: Highlight errors in macros r=jonas-schievink a=popzxc

Resolves #4924

This PR makes rust-analyzer highlight not only the source place when error originates in macro, but also the exact places in macro which caused an error.

This is done by creating an inverse diagnostic, which points to the macro and cross-references the source place.

![изображение](https://user-images.githubusercontent.com/12111581/92319594-b71e6c00-f022-11ea-94c1-f412905269dd.png)

Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>

Trivial merge