about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-14 15:34:53 +0000
committerbors <bors@rust-lang.org>2024-03-14 15:34:53 +0000
commit14558af15ee3d471bf8f4212f7609ae1f9647bc5 (patch)
tree2eea94072c7af7b78f4bdc21536bdcc14c1d760e /compiler/rustc_pattern_analysis/src
parent6fc3a3ef056e3ea3938cd3c641a88fe4b8ecab20 (diff)
parentd085ade631ac8e042c62398aa425e9813d91dd7c (diff)
downloadrust-14558af15ee3d471bf8f4212f7609ae1f9647bc5.tar.gz
rust-14558af15ee3d471bf8f4212f7609ae1f9647bc5.zip
Auto merge of #16834 - Veykril:macarons, r=Veykril
feat: Support macro calls in eager macros for IDE features

Basically hovering `concat` and `env` in `include!(concat!(env!("OUT_DIR"), "/foo.rs"))` now works and highlights as expected.

This also fixes a few bugs/problems to make it work. Prior we set the call site span to the entire macro call which is kind of wrong, typing inside the call would invalidate the span causing us to leak `MacroCallLoc`s whenever that happened. The same happened for attributes both of which now define their path as the call site.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions