From cc73abf72c46d9f13a176d93d1d38f3a72d638e3 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 18 Jun 2021 23:33:01 +0300 Subject: minor: use minicore --- crates/ide_completion/src/completions/postfix.rs | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'crates/ide_completion/src') diff --git a/crates/ide_completion/src/completions/postfix.rs b/crates/ide_completion/src/completions/postfix.rs index c3c7e4589..c11deebcb 100644 --- a/crates/ide_completion/src/completions/postfix.rs +++ b/crates/ide_completion/src/completions/postfix.rs @@ -436,18 +436,15 @@ fn main() { check_edit( "ifl", r#" -enum Option { Some(T), None } - +//- minicore: option fn main() { - let bar = Option::Some(true); + let bar = Some(true); bar.$0 } "#, r#" -enum Option { Some(T), None } - fn main() { - let bar = Option::Some(true); + let bar = Some(true); if let Some($1) = bar { $0 } @@ -461,18 +458,15 @@ fn main() { check_edit( "match", r#" -enum Result { Ok(T), Err(E) } - +//- minicore: result fn main() { - let bar = Result::Ok(true); + let bar = Ok(true); bar.$0 } "#, r#" -enum Result { Ok(T), Err(E) } - fn main() { - let bar = Result::Ok(true); + let bar = Ok(true); match bar { Ok(${1:_}) => {$2}, Err(${3:_}) => {$0}, -- cgit v1.2.3