fix: Fix focus range being discarded in attributes/derives when upmapping

This commit is contained in:
Lukas Wirth 2024-01-03 12:09:11 +01:00
parent 426d2842c1
commit cf22f02dc5
2 changed files with 21 additions and 7 deletions

View file

@ -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]`.
///