Yuki Okushi
99fc56b9de
Rollup merge of #85937 - m-ou-se:macro-ref-suggestions, r=estebank
Fix bad suggestions for code from proc_macro
Fixes #85932
This disables these suggestions for spans from external macros, while keeping them for macros defined locally:
Before:
```
3 | #[hello]
| ^^^^^^^^
| |
| expected `&mut i32`, found integer
| help: consider mutably borrowing here: `&mut #[hello]`
```
After:
```
3 | #[hello]
| ^^^^^^^^ expected `&mut i32`, found integer
```
Unchanged:
```
26 | macro_rules! bla { () => { x(123); } }
| ^^^
| |
| expected `&mut i32`, found integer
| help: consider mutably borrowing here: `&mut 123`
...
29 | bla!();
| ------- in this macro invocation
```
2021-06-04 13:42:58 +09:00
..
2021-06-01 09:05:22 +02:00
2021-06-01 20:53:04 +02:00
2021-05-31 13:55:43 +02:00
2021-06-01 09:05:22 +02:00
2021-06-02 10:23:12 -04:00
2021-06-04 13:42:54 +09:00
2021-06-04 13:42:54 +09:00
2021-06-02 08:49:58 +02:00
2021-06-04 13:42:54 +09:00
2021-06-01 23:02:52 +00:00
2021-06-04 13:42:54 +09:00
2021-06-02 13:11:41 +00:00
2021-05-31 13:55:43 +02:00
2021-06-04 13:42:54 +09:00
2021-06-04 13:42:54 +09:00
2021-06-04 13:42:54 +09:00
2021-06-03 14:35:30 +09:00
2021-06-04 13:42:56 +09:00
2021-06-04 13:42:54 +09:00
2021-06-04 13:42:54 +09:00
2021-06-04 13:42:54 +09:00
2021-06-04 13:42:54 +09:00
2021-06-04 13:42:54 +09:00
2021-06-01 09:05:22 +02:00
2021-06-04 13:42:54 +09:00
2021-06-04 13:42:54 +09:00
2021-06-03 14:35:36 +09:00
2021-05-30 12:51:34 +02:00
2021-05-31 13:55:43 +02:00
2021-06-02 08:49:58 +02:00
2021-06-04 13:42:54 +09:00
2021-06-02 18:35:32 +02:00
2021-06-04 13:42:54 +09:00
2021-06-02 18:35:32 +02:00
2021-06-02 18:35:32 +02:00
2021-05-31 13:55:43 +02:00
2021-06-04 13:42:58 +09:00