]> git.lizzy.rs Git - rust.git/commit
internal: prepare to move rename to base_db
authorAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 14 Jun 2021 14:19:41 +0000 (17:19 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 14 Jun 2021 14:28:39 +0000 (17:28 +0300)
commit721feb18322101a98b8b614f93fbd35a139e435f
tree915f7d53fefd8441fb2324a5f2b51c7910a8b0a6
parentd4ab49c53303c31858955bc971fe1305445f1de1
internal: prepare to move rename to base_db

It's better to handle magical cases upper in the stack, because it
allows for better re-use of the general implementation below. So, we
pull the `self` case up here.

The end goal is to put `Definition::rename` to the `ide_db`, because
it's a generally re-usable functionality useful for different ide
features, alongside with the search which is already there.
crates/ide/src/references/rename.rs