aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2019-12-24 00:19:09 +0000
committerKirill Bulatov <[email protected]>2020-01-26 22:16:29 +0000
commit316795e074dff8f627f8c70c85d236420ecfb3a6 (patch)
treeda6e266139563ef314d0563a01723ae2264609d2 /docs
parentd1330a4a65f0113c687716a5a679239af4df9c11 (diff)
Initial auto import action implementation
Diffstat (limited to 'docs')
-rw-r--r--docs/user/assists.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/user/assists.md b/docs/user/assists.md
index ecf206f71..c36c5df6a 100644
--- a/docs/user/assists.md
+++ b/docs/user/assists.md
@@ -209,6 +209,24 @@ fn main() {
209} 209}
210``` 210```
211 211
212## `auto_import`
213
214If the name is unresolved, provides all possible imports for it.
215
216```rust
217// BEFORE
218fn main() {
219 let map = HashMap┃::new();
220}
221
222// AFTER
223use std::collections::HashMap;
224
225fn main() {
226 let map = HashMap┃::new();
227}
228```
229
212## `change_visibility` 230## `change_visibility`
213 231
214Adds or changes existing visibility specifier. 232Adds or changes existing visibility specifier.