rust/crates
bors 932e63b5d4 Auto merge of #13239 - mdx97:mathew/fix-add-reference-for-macros, r=Veykril
Fix add reference action on macros.

Before we were using the range of the corresponding expression node in the macro expanded file, which is obviously incorrect as we are setting the text in the original source.

For some reason, the test I added is failing and I haven't found a way to fix it. Does anyone know why `check_fix` wouldn't work with macros? Getting this error:

```text
thread 'handlers::type_mismatch::tests::test_add_reference_to_macro_call' panicked at 'no diagnostics', crates/ide-diagnostics/src/handlers/type_mismatch.rs:317:9
```

closes #13219
2022-09-17 11:23:05 +00:00
..
base-db
cfg
flycheck
hir
hir-def Fix prelude injection 2022-09-15 12:12:22 +02:00
hir-expand
hir-ty
ide Auto merge of #13221 - mdx97:mdx97/annotations-above-whole-item, r=Veykril 2022-09-13 15:09:53 +00:00
ide-assists
ide-completion Complete variants and assoc items in path pattern through type aliases 2022-09-16 16:11:58 +02:00
ide-db Use memmem when searching for usages in ide-db 2022-09-16 16:26:54 +02:00
ide-diagnostics Fix tests by using primitive rather than String. 2022-09-16 16:56:19 -05:00
ide-ssr
limit
mbe mbe: Remove unneeded unwrap 2022-09-14 23:49:08 +02:00
parser
paths
proc-macro-api
proc-macro-srv
proc-macro-srv-cli
proc-macro-test
profile
project-model
rust-analyzer Auto merge of #13221 - mdx97:mdx97/annotations-above-whole-item, r=Veykril 2022-09-13 15:09:53 +00:00
sourcegen
stdx
syntax
test-utils
text-edit
toolchain
tt
vfs
vfs-notify