Skip to content

Commit 03d4a6d

Browse files
committed
Auto merge of rust-lang#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.
2 parents 85c9a83 + 0347f81 commit 03d4a6d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/ide-db/src/rename.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl Definition {
8181
// Can we not rename non-local items?
8282
// Then bail if non-local
8383
if !rename_external && !krate.origin(sema.db).is_local() {
84-
bail!("Cannot rename a non-local definition. Set `renameExternalItems` to `true` to allow renaming for this item.")
84+
bail!("Cannot rename a non-local definition as the config for it is disabled")
8585
}
8686
}
8787

crates/ide/src/rename.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2636,7 +2636,7 @@ pub struct S;
26362636
//- /main.rs crate:main deps:lib new_source_root:local
26372637
use lib::S$0;
26382638
"#,
2639-
"error: Cannot rename a non-local definition. Set `renameExternalItems` to `true` to allow renaming for this item.",
2639+
"error: Cannot rename a non-local definition as the config for it is disabled",
26402640
false,
26412641
);
26422642

@@ -2663,7 +2663,7 @@ use core::hash::Hash;
26632663
#[derive(H$0ash)]
26642664
struct A;
26652665
"#,
2666-
"error: Cannot rename a non-local definition. Set `renameExternalItems` to `true` to allow renaming for this item.",
2666+
"error: Cannot rename a non-local definition as the config for it is disabled",
26672667
false,
26682668
);
26692669
}

0 commit comments

Comments
 (0)