From b146279b48f6a4f4bea8946cb3f0f1f5cc5a9985 Mon Sep 17 00:00:00 2001 From: pommicket Date: Mon, 7 Aug 2023 07:19:56 -0400 Subject: handle more complicated renames --- test/lsp/rust/src/foo.rs | 3 +++ test/lsp/rust/src/main.rs | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 test/lsp/rust/src/foo.rs (limited to 'test/lsp') diff --git a/test/lsp/rust/src/foo.rs b/test/lsp/rust/src/foo.rs new file mode 100644 index 0000000..08cbd24 --- /dev/null +++ b/test/lsp/rust/src/foo.rs @@ -0,0 +1,3 @@ +pub fn a() -> i32 { + 8 +} diff --git a/test/lsp/rust/src/main.rs b/test/lsp/rust/src/main.rs index e7a11a9..e71b6f7 100644 --- a/test/lsp/rust/src/main.rs +++ b/test/lsp/rust/src/main.rs @@ -1,3 +1,5 @@ +mod foo; + fn main() { - println!("Hello, world!"); + println!("Hello, world! {}", foo::a()); } -- cgit v1.2.3