- Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
C-featureCategory: feature requestCategory: feature request
Description
AssistContext::find_node_at_offset_with_descend Return None on the whitespace within the macro, as the whitespace does not have descended
macro_rules! m { ($($t:tt)*) => {$($t)*} } m!(match Some(2) { None => 3, $0 });$0 cannot descend a token on WHITESPACE, unless $0 is on the } (currently other bug #21728)
Problem
Avoid descended cases that do not contain the this whitespace, e.g
call find_node_at_offset_with_descend::<ast::WildcardPat>() on $0 _ => 2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-featureCategory: feature requestCategory: feature request
Type
Fields
Give feedbackNo fields configured for issues without a type.