bors[bot] 2aa64831e5
Merge #8183
8183: Fix missing command error with macros r=Veykril a=brandondong

**Reproduction:**
1. Define a struct through a macro (can be via `macro_rules`, proc macro, or `include!()`).
2. !!MISSING: command!! annotation appears. Clicking on it results in an error message. No matter where the macro is called/defined, the annotation is always at the start of the file.
![image](https://user-images.githubusercontent.com/13722457/112268785-bce14500-8c34-11eb-9a23-bafd63ffd6ef.png)

**Cause:**
- For struct `A`, a `HasImpls` annotation is added just like for struct `B`. Unlike `B`, the file id for `A` is not the file we are adding annotations to but a macro file.
- The resolving step of the code lens does not succeed.

**Fix:**
- Check that the files match before computing offsets and adding `HasImpls`/`HasReferences` annotations.

Co-authored-by: Brandon <brandondong604@hotmail.com>
2021-03-24 10:17:12 +00:00
..
2021-03-23 13:04:43 +03:00
2021-03-21 16:15:41 +01:00
2021-03-23 17:49:06 +01:00
2021-03-24 00:47:55 -07:00
2021-03-22 20:39:58 +00:00
2021-03-24 00:47:55 -07:00
2021-03-23 19:59:33 +03:00
2021-03-23 13:03:55 +01:00
2021-03-21 16:15:41 +01:00
2021-03-24 15:01:37 +08:00
2021-03-24 08:53:48 +00:00
2021-03-23 19:41:15 +03:00
2021-03-21 16:15:41 +01:00