aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-02-08 10:51:22 +0000
committerAleksey Kladov <[email protected]>2019-02-08 11:34:30 +0000
commit4d0e58afef1722d5f5bf5970bed44594c27ecf34 (patch)
treebf66b8623925e58d29f7b331d834e25203af0b6d /crates/ra_ide_api/src
parentbddd1242986f3155bdb1ca65495bc0623e3d211d (diff)
rename rename to references
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r--crates/ra_ide_api/src/lib.rs4
-rw-r--r--crates/ra_ide_api/src/references.rs (renamed from crates/ra_ide_api/src/rename.rs)0
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs
index bb60e8d40..0bb21245d 100644
--- a/crates/ra_ide_api/src/lib.rs
+++ b/crates/ra_ide_api/src/lib.rs
@@ -29,7 +29,7 @@ mod hover;
29mod call_info; 29mod call_info;
30mod syntax_highlighting; 30mod syntax_highlighting;
31mod parent_module; 31mod parent_module;
32mod rename; 32mod references;
33mod impls; 33mod impls;
34mod assists; 34mod assists;
35 35
@@ -388,7 +388,7 @@ impl Analysis {
388 position: FilePosition, 388 position: FilePosition,
389 new_name: &str, 389 new_name: &str,
390 ) -> Cancelable<Option<SourceChange>> { 390 ) -> Cancelable<Option<SourceChange>> {
391 self.with_db(|db| rename::rename(db, position, new_name)) 391 self.with_db(|db| references::rename(db, position, new_name))
392 } 392 }
393 393
394 fn with_db<F: FnOnce(&db::RootDatabase) -> T + std::panic::UnwindSafe, T>( 394 fn with_db<F: FnOnce(&db::RootDatabase) -> T + std::panic::UnwindSafe, T>(
diff --git a/crates/ra_ide_api/src/rename.rs b/crates/ra_ide_api/src/references.rs
index 1c9491a0a..1c9491a0a 100644
--- a/crates/ra_ide_api/src/rename.rs
+++ b/crates/ra_ide_api/src/references.rs