about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-17 11:23:05 +0000
committerbors <bors@rust-lang.org>2022-09-17 11:23:05 +0000
commit932e63b5d4358de4775649f99a71430ae4318db1 (patch)
treeb8ab9723f7d06d5f741abcc100a1f21518a27394 /compiler/rustc_plugin_impl/src
parentb6e3f41c2a8dc2559e3cd22fddadc505556aa1fa (diff)
parenta65ca20210b4cf82c32f11249208f990af3fb816 (diff)
downloadrust-932e63b5d4358de4775649f99a71430ae4318db1.tar.gz
rust-932e63b5d4358de4775649f99a71430ae4318db1.zip
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
Diffstat (limited to 'compiler/rustc_plugin_impl/src')
0 files changed, 0 insertions, 0 deletions