Skip to content

Commit 7efc70e

Browse files
test: fix disallow_renaming_for_non_local_definition to follow PR changes.
1 parent 911f76e commit 7efc70e

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

crates/ide/src/rename.rs

+1-13
Original file line numberDiff line numberDiff line change
@@ -2697,18 +2697,6 @@ use qux as frob;
26972697

26982698
#[test]
26992699
fn disallow_renaming_for_non_local_definition() {
2700-
check_with_rename_config(
2701-
"Baz",
2702-
r#"
2703-
//- /lib.rs crate:lib new_source_root:library
2704-
pub struct S;
2705-
//- /main.rs crate:main deps:lib new_source_root:local
2706-
use lib::S$0;
2707-
"#,
2708-
"error: Cannot rename a non-local definition as the config for it is disabled",
2709-
false,
2710-
);
2711-
27122700
check(
27132701
"Baz",
27142702
r#"
@@ -2717,7 +2705,7 @@ pub struct S;
27172705
//- /main.rs crate:main deps:lib new_source_root:local
27182706
use lib::S$0;
27192707
"#,
2720-
"use lib::Baz;\n",
2708+
"use lib::S as Baz;\n",
27212709
);
27222710
}
27232711

0 commit comments

Comments
 (0)