Skip to content

Commit

Permalink
test: fix disallow_renaming_for_non_local_definition to follow PR c…
Browse files Browse the repository at this point in the history
…hanges.
  • Loading branch information
UserIsntAvailable authored and Veykril committed Feb 19, 2024
1 parent 6e16edb commit 6dd5dc1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/ide/src/rename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ pub(crate) fn rename(
return rename_to_self(&sema, local);
}
}
def.rename(&sema, new_name, rename_external)
def.rename(&sema, new_name)
})
.collect(),
};
Expand Down Expand Up @@ -2695,7 +2695,8 @@ use qux as frob;
//- /lib.rs crate:lib new_source_root:library
pub struct S;
//- /main.rs crate:main deps:lib new_source_root:local
use lib::S$0;
use lib::S;
fn main() { let _: S$0; }
"#,
"error: Cannot rename a non-local definition",
);
Expand Down

0 comments on commit 6dd5dc1

Please sign in to comment.