]> git.lizzy.rs Git - rust.git/commit
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)
commit868f4b57561cab3f537c9c5d0c9ad78fc4703891
tree217405b14f2b57de8739166045b625cbb3e9cacb
parent5c336e266fe09ae9ae6e634513d441cbcde63696
parent023e3a1deaff4e8780eb5eb5f660bf193cbe384d
Merge #5956

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>