diff options
Diffstat (limited to 'crates/ra_ssr/src/matching.rs')
-rw-r--r-- | crates/ra_ssr/src/matching.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_ssr/src/matching.rs b/crates/ra_ssr/src/matching.rs index bdaba9f1b..85420ed3c 100644 --- a/crates/ra_ssr/src/matching.rs +++ b/crates/ra_ssr/src/matching.rs | |||
@@ -343,7 +343,9 @@ impl<'db, 'sema> MatchState<'db, 'sema> { | |||
343 | } | 343 | } |
344 | 344 | ||
345 | /// Outside of token trees, a placeholder can only match a single AST node, whereas in a token | 345 | /// Outside of token trees, a placeholder can only match a single AST node, whereas in a token |
346 | /// tree it can match a sequence of tokens. | 346 | /// tree it can match a sequence of tokens. Note, that this code will only be used when the |
347 | /// pattern matches the macro invocation. For matches within the macro call, we'll already have | ||
348 | /// expanded the macro. | ||
347 | fn attempt_match_token_tree( | 349 | fn attempt_match_token_tree( |
348 | &mut self, | 350 | &mut self, |
349 | match_inputs: &MatchInputs, | 351 | match_inputs: &MatchInputs, |