diff options
| author | David Lattimore <dml@google.com> | 2020-08-01 17:41:42 +1000 |
|---|---|---|
| committer | David Lattimore <dml@google.com> | 2020-08-01 17:41:42 +1000 |
| commit | 6bbeffc8c56893548f5667844f59ce5a76f9fd98 (patch) | |
| tree | 446162072916f99a3c9b4c5e1734fbcc56cbd3f1 /docs/dev/debugging.md | |
| parent | 5af32aeb2b83c7ae8adf3e088bf4f3691aa45eb1 (diff) | |
| download | rust-6bbeffc8c56893548f5667844f59ce5a76f9fd98.tar.gz rust-6bbeffc8c56893548f5667844f59ce5a76f9fd98.zip | |
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 'docs/dev/debugging.md')
0 files changed, 0 insertions, 0 deletions
