mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Auto merge of #16400 - alibektas:15656/update_bail_message_ref_config, r=Veykril
Update bail message referencing config Even though we changed the name of the config I forgot to update the warning message that referenced it.
This commit is contained in:
commit
03d4a6dd9a
2 changed files with 3 additions and 3 deletions
|
@ -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 `renameExternalItems` to `true` to allow renaming for this item.")
|
bail!("Cannot rename a non-local definition as the config for it is disabled")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2636,7 +2636,7 @@ pub struct S;
|
||||||
//- /main.rs crate:main deps:lib new_source_root:local
|
//- /main.rs crate:main deps:lib new_source_root:local
|
||||||
use lib::S$0;
|
use lib::S$0;
|
||||||
"#,
|
"#,
|
||||||
"error: Cannot rename a non-local definition. Set `renameExternalItems` to `true` to allow renaming for this item.",
|
"error: Cannot rename a non-local definition as the config for it is disabled",
|
||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2663,7 +2663,7 @@ use core::hash::Hash;
|
||||||
#[derive(H$0ash)]
|
#[derive(H$0ash)]
|
||||||
struct A;
|
struct A;
|
||||||
"#,
|
"#,
|
||||||
"error: Cannot rename a non-local definition. Set `renameExternalItems` to `true` to allow renaming for this item.",
|
"error: Cannot rename a non-local definition as the config for it is disabled",
|
||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue