Update crates/ide-db/src/rename.rs

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
Ali Bektas 2024-01-19 14:33:40 +01:00 committed by GitHub
parent 431040fe59
commit 0becb6c819
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,7 +81,7 @@ impl Definition {
// Can we not rename non-local items? // Can we not rename non-local items?
// Then bail if non-local // Then bail if non-local
if !rename_external && !krate.origin(sema.db).is_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")
} }
} }