diff options
author | Aleksey Kladov <[email protected]> | 2018-12-30 13:29:10 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-30 13:29:10 +0000 |
commit | c182aab5460fb5dc14b8c0e47fae45a09ccf0ac8 (patch) | |
tree | 6afb582a118bd97690ad46b21d231b117202cf2a /crates/ra_analysis/src/completion/complete_path.rs | |
parent | 3ee7a95315e510e719dae01bdc0b4cb47561938f (diff) |
don't add () in use items
Diffstat (limited to 'crates/ra_analysis/src/completion/complete_path.rs')
-rw-r--r-- | crates/ra_analysis/src/completion/complete_path.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/crates/ra_analysis/src/completion/complete_path.rs b/crates/ra_analysis/src/completion/complete_path.rs index 99fe9aa94..4723a65a6 100644 --- a/crates/ra_analysis/src/completion/complete_path.rs +++ b/crates/ra_analysis/src/completion/complete_path.rs | |||
@@ -113,4 +113,16 @@ mod tests { | |||
113 | "Foo;Bar", | 113 | "Foo;Bar", |
114 | ); | 114 | ); |
115 | } | 115 | } |
116 | |||
117 | #[test] | ||
118 | fn dont_render_function_parens_in_use_item() { | ||
119 | check_reference_completion( | ||
120 | " | ||
121 | //- /lib.rs | ||
122 | mod m { pub fn foo() {} } | ||
123 | use crate::m::f<|>; | ||
124 | ", | ||
125 | "foo", | ||
126 | ) | ||
127 | } | ||
116 | } | 128 | } |