diff options
Diffstat (limited to 'crates/ra_assists/src/doc_tests')
-rw-r--r-- | crates/ra_assists/src/doc_tests/generated.rs | 53 |
1 files changed, 37 insertions, 16 deletions
diff --git a/crates/ra_assists/src/doc_tests/generated.rs b/crates/ra_assists/src/doc_tests/generated.rs index 7d84dc8fb..4ab09b167 100644 --- a/crates/ra_assists/src/doc_tests/generated.rs +++ b/crates/ra_assists/src/doc_tests/generated.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | //! Generated file, do not edit by hand, see `crate/ra_tools/src/codegen` | 1 | //! Generated file, do not edit by hand, see `xtask/src/codegen` |
2 | 2 | ||
3 | use super::check; | 3 | use super::check; |
4 | 4 | ||
@@ -161,21 +161,6 @@ impl Trait<u32> for () { | |||
161 | } | 161 | } |
162 | 162 | ||
163 | #[test] | 163 | #[test] |
164 | fn doctest_add_import() { | ||
165 | check( | ||
166 | "add_import", | ||
167 | r#####" | ||
168 | fn process(map: std::collections::<|>HashMap<String, String>) {} | ||
169 | "#####, | ||
170 | r#####" | ||
171 | use std::collections::HashMap; | ||
172 | |||
173 | fn process(map: HashMap<String, String>) {} | ||
174 | "#####, | ||
175 | ) | ||
176 | } | ||
177 | |||
178 | #[test] | ||
179 | fn doctest_add_new() { | 164 | fn doctest_add_new() { |
180 | check( | 165 | check( |
181 | "add_new", | 166 | "add_new", |
@@ -215,6 +200,27 @@ fn main() { | |||
215 | } | 200 | } |
216 | 201 | ||
217 | #[test] | 202 | #[test] |
203 | fn doctest_auto_import() { | ||
204 | check( | ||
205 | "auto_import", | ||
206 | r#####" | ||
207 | fn main() { | ||
208 | let map = HashMap<|>::new(); | ||
209 | } | ||
210 | pub mod std { pub mod collections { pub struct HashMap { } } } | ||
211 | "#####, | ||
212 | r#####" | ||
213 | use std::collections::HashMap; | ||
214 | |||
215 | fn main() { | ||
216 | let map = HashMap::new(); | ||
217 | } | ||
218 | pub mod std { pub mod collections { pub struct HashMap { } } } | ||
219 | "#####, | ||
220 | ) | ||
221 | } | ||
222 | |||
223 | #[test] | ||
218 | fn doctest_change_visibility() { | 224 | fn doctest_change_visibility() { |
219 | check( | 225 | check( |
220 | "change_visibility", | 226 | "change_visibility", |
@@ -571,6 +577,21 @@ fn handle(action: Action) { | |||
571 | } | 577 | } |
572 | 578 | ||
573 | #[test] | 579 | #[test] |
580 | fn doctest_replace_qualified_name_with_use() { | ||
581 | check( | ||
582 | "replace_qualified_name_with_use", | ||
583 | r#####" | ||
584 | fn process(map: std::collections::<|>HashMap<String, String>) {} | ||
585 | "#####, | ||
586 | r#####" | ||
587 | use std::collections::HashMap; | ||
588 | |||
589 | fn process(map: HashMap<String, String>) {} | ||
590 | "#####, | ||
591 | ) | ||
592 | } | ||
593 | |||
594 | #[test] | ||
574 | fn doctest_split_import() { | 595 | fn doctest_split_import() { |
575 | check( | 596 | check( |
576 | "split_import", | 597 | "split_import", |