aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-06-18 21:38:19 +0100
committerAleksey Kladov <[email protected]>2021-06-18 21:38:19 +0100
commita9623f3165f87124de836e81e238118e557bb9e9 (patch)
tree32d2d0cecee29d6637684031a3e042e39328c05c /crates/ide_completion
parentcc73abf72c46d9f13a176d93d1d38f3a72d638e3 (diff)
minor: use minicore
Diffstat (limited to 'crates/ide_completion')
-rw-r--r--crates/ide_completion/src/completions/postfix.rs9
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#"
512enum Option<T> { Some(T), None } 512//- minicore: option
513
514fn main() { 513fn 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#"
520enum Option<T> { Some(T), None }
521
522fn main() { 519fn 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}