]> git.lizzy.rs Git - rust.git/commit
Merge #6665
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Sun, 29 Nov 2020 20:03:44 +0000 (20:03 +0000)
committerGitHub <noreply@github.com>
Sun, 29 Nov 2020 20:03:44 +0000 (20:03 +0000)
commitac30710ada112984c9cf79c4af39ad666d000171
tree2a819761bd55b14238b2a2674805ce5a0ae86a0d
parent25ebcca224dc220c0439d9c82c6ef5ffa131c409
parentde4ada22d484950a6f416f25c85566ea9d1830a9
Merge #6665

6665: Support self in reference search r=matklad a=Veykril

The approach here is simply checking the descendants of the function body for `PathExpr` then checking whether it only contains a single `self` `PathSegment`, this is to prevent us from picking up `self` tokens from local `UseTree`s.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>