mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
Update crates/ide-db/src/rename.rs
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
parent
431040fe59
commit
0becb6c819
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue