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/src/inlay_hints.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crates/ide') diff --git a/crates/ide/src/inlay_hints.rs b/crates/ide/src/inlay_hints.rs index 335d57a0d..48bab0b2e 100644 --- a/crates/ide/src/inlay_hints.rs +++ b/crates/ide/src/inlay_hints.rs @@ -908,9 +908,7 @@ fn main() { fn unit_structs_have_no_type_hints() { check_types( r#" -enum Result { Ok(T), Err(E) } -use Result::*; - +//- minicore: result struct SyntheticSyntax; fn main() { -- cgit v1.2.3 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') 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