diff options
author | David Lattimore <[email protected]> | 2020-08-01 08:41:42 +0100 |
---|---|---|
committer | David Lattimore <[email protected]> | 2020-08-01 08:41:42 +0100 |
commit | 6bbeffc8c56893548f5667844f59ce5a76f9fd98 (patch) | |
tree | 446162072916f99a3c9b4c5e1734fbcc56cbd3f1 /crates/ra_syntax/src/ast/generated | |
parent | 5af32aeb2b83c7ae8adf3e088bf4f3691aa45eb1 (diff) |
SSR: Allow `self` in patterns.
It's now consistent with other variables in that if the pattern
references self, only the `self` in scope where the rule is invoked will
be accepted. Since `self` doesn't work the same as other paths, this is
implemented by restricting the search to just the current function.
Prior to this change (since path resolution was implemented), having
self in a pattern would just result in no matches.
Diffstat (limited to 'crates/ra_syntax/src/ast/generated')
0 files changed, 0 insertions, 0 deletions