diff options
author | Aleksey Kladov <[email protected]> | 2021-06-18 21:38:19 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-06-18 21:38:19 +0100 |
commit | a9623f3165f87124de836e81e238118e557bb9e9 (patch) | |
tree | 32d2d0cecee29d6637684031a3e042e39328c05c /crates/ide_completion/src | |
parent | cc73abf72c46d9f13a176d93d1d38f3a72d638e3 (diff) |
minor: use minicore
Diffstat (limited to 'crates/ide_completion/src')
-rw-r--r-- | crates/ide_completion/src/completions/postfix.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crates/ide_completion/src/completions/postfix.rs b/crates/ide_completion/src/completions/postfix.rs index c11deebcb..4e20ec003 100644 --- a/crates/ide_completion/src/completions/postfix.rs +++ b/crates/ide_completion/src/completions/postfix.rs | |||
@@ -509,18 +509,15 @@ fn main() { | |||
509 | check_edit( | 509 | check_edit( |
510 | "ifl", | 510 | "ifl", |
511 | r#" | 511 | r#" |
512 | enum Option<T> { Some(T), None } | 512 | //- minicore: option |
513 | |||
514 | fn main() { | 513 | fn main() { |
515 | let bar = &Option::Some(true); | 514 | let bar = &Some(true); |
516 | bar.$0 | 515 | bar.$0 |
517 | } | 516 | } |
518 | "#, | 517 | "#, |
519 | r#" | 518 | r#" |
520 | enum Option<T> { Some(T), None } | ||
521 | |||
522 | fn main() { | 519 | fn main() { |
523 | let bar = &Option::Some(true); | 520 | let bar = &Some(true); |
524 | if let Some($1) = bar { | 521 | if let Some($1) = bar { |
525 | $0 | 522 | $0 |
526 | } | 523 | } |