From a9623f3165f87124de836e81e238118e557bb9e9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 18 Jun 2021 23:38:19 +0300 Subject: minor: use minicore --- crates/ide/src/inlay_hints.rs | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'crates/ide/src') diff --git a/crates/ide/src/inlay_hints.rs b/crates/ide/src/inlay_hints.rs index 48bab0b2e..95f9edce4 100644 --- a/crates/ide/src/inlay_hints.rs +++ b/crates/ide/src/inlay_hints.rs @@ -661,9 +661,7 @@ fn main() { fn function_call_parameter_hint() { check_params( r#" -enum Option { None, Some(T) } -use Option::*; - +//- minicore: option struct FileId {} struct SmolStr {} @@ -872,7 +870,6 @@ fn main() { check_types( r#" //- minicore: fn, sized - fn foo() -> impl Fn() { loop {} } fn foo1() -> impl Fn(f64) { loop {} } fn foo2() -> impl Fn(f64, f64) { loop {} } @@ -960,9 +957,7 @@ fn main() { fn if_expr() { check_types( r#" -enum Option { None, Some(T) } -use Option::*; - +//- minicore: option struct Test { a: Option, b: u8 } fn main() { @@ -992,9 +987,7 @@ fn main() { fn while_expr() { check_types( r#" -enum Option { None, Some(T) } -use Option::*; - +//- minicore: option struct Test { a: Option, b: u8 } fn main() { @@ -1010,9 +1003,7 @@ fn main() { fn match_arm_list() { check_types( r#" -enum Option { None, Some(T) } -use Option::*; - +//- minicore: option struct Test { a: Option, b: u8 } fn main() { -- cgit v1.2.3