about summary refs log tree commit diff
path: root/crates/hir-expand/src/lib.rs
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2024-01-03 12:09:11 +0100
committerLukas Wirth <lukastw97@gmail.com>2024-01-03 12:15:28 +0100
commitcf22f02dc501cd515e9aa3fb36b01f6adb1567cd (patch)
treedf1dab2582a73da195f9cf90fcc9fd1dbfdf4d7e /crates/hir-expand/src/lib.rs
parent426d2842c1f0e5cc5e34bb37c7ac3ee0945f9746 (diff)
downloadrust-cf22f02dc501cd515e9aa3fb36b01f6adb1567cd.tar.gz
rust-cf22f02dc501cd515e9aa3fb36b01f6adb1567cd.zip
fix: Fix focus range being discarded in attributes/derives when upmapping
Diffstat (limited to 'crates/hir-expand/src/lib.rs')
-rw-r--r--crates/hir-expand/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir-expand/src/lib.rs b/crates/hir-expand/src/lib.rs
index b5197d4c25d..6a122e0859c 100644
--- a/crates/hir-expand/src/lib.rs
+++ b/crates/hir-expand/src/lib.rs
@@ -220,6 +220,8 @@ pub enum MacroCallKind {
     },
     Attr {
         ast_id: AstId<ast::Item>,
+        // FIXME: This is being interned, subtrees can very quickly differ just slightly causing
+        // leakage problems here
         attr_args: Option<Arc<tt::Subtree>>,
         /// Syntactical index of the invoking `#[attribute]`.
         ///