Unnamed repository; edit this file 'description' to name the repository.
Update crates/ide-db/src/rename.rs
Co-authored-by: Lukas Wirth <[email protected]>
Ali Bektas 2024-01-19
parent 431040f · commit 0becb6c
-rw-r--r--crates/ide-db/src/rename.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide-db/src/rename.rs b/crates/ide-db/src/rename.rs
index 10fcef49a0..051dba0ec0 100644
--- a/crates/ide-db/src/rename.rs
+++ b/crates/ide-db/src/rename.rs
@@ -81,7 +81,7 @@ impl Definition {
// Can we not rename non-local items?
// Then bail if non-local
if !rename_external && !krate.origin(sema.db).is_local() {
- bail!("Cannot rename a non-local definition. Set `rename_allowExternalItems` to `true` to allow renaming for this item.")
+ bail!("Cannot rename a non-local definition as the config for it is disabled")
}
}