diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-08-05 22:07:35 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-05 22:07:35 +0000 |
| commit | ed4687f698fa3c03649819ea6c71ce0a290b7888 (patch) | |
| tree | 31d97b4bb7faf5bbc03c5e41d6314bd353e7704e /docs/dev/debugging.md | |
| parent | 5ebf92cd0ed4be97fe0ca5bffefbe292db1ec4cf (diff) | |
| parent | 3eea41a68ca2de28dca35b6e713cbb36aa09f0c8 (diff) | |
| download | rust-ed4687f698fa3c03649819ea6c71ce0a290b7888.tar.gz rust-ed4687f698fa3c03649819ea6c71ce0a290b7888.zip | |
Merge #5639
5639: SSR: Allow `self` in patterns. r=jonas-schievink a=davidlattimore 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. Co-authored-by: David Lattimore <dml@google.com>
Diffstat (limited to 'docs/dev/debugging.md')
0 files changed, 0 insertions, 0 deletions
