diff options
Diffstat (limited to 'crates/ide/src')
-rw-r--r-- | crates/ide/src/inlay_hints.rs | 17 |
1 files changed, 4 insertions, 13 deletions
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() { | |||
661 | fn function_call_parameter_hint() { | 661 | fn function_call_parameter_hint() { |
662 | check_params( | 662 | check_params( |
663 | r#" | 663 | r#" |
664 | enum Option<T> { None, Some(T) } | 664 | //- minicore: option |
665 | use Option::*; | ||
666 | |||
667 | struct FileId {} | 665 | struct FileId {} |
668 | struct SmolStr {} | 666 | struct SmolStr {} |
669 | 667 | ||
@@ -872,7 +870,6 @@ fn main() { | |||
872 | check_types( | 870 | check_types( |
873 | r#" | 871 | r#" |
874 | //- minicore: fn, sized | 872 | //- minicore: fn, sized |
875 | |||
876 | fn foo() -> impl Fn() { loop {} } | 873 | fn foo() -> impl Fn() { loop {} } |
877 | fn foo1() -> impl Fn(f64) { loop {} } | 874 | fn foo1() -> impl Fn(f64) { loop {} } |
878 | fn foo2() -> impl Fn(f64, f64) { loop {} } | 875 | fn foo2() -> impl Fn(f64, f64) { loop {} } |
@@ -960,9 +957,7 @@ fn main() { | |||
960 | fn if_expr() { | 957 | fn if_expr() { |
961 | check_types( | 958 | check_types( |
962 | r#" | 959 | r#" |
963 | enum Option<T> { None, Some(T) } | 960 | //- minicore: option |
964 | use Option::*; | ||
965 | |||
966 | struct Test { a: Option<u32>, b: u8 } | 961 | struct Test { a: Option<u32>, b: u8 } |
967 | 962 | ||
968 | fn main() { | 963 | fn main() { |
@@ -992,9 +987,7 @@ fn main() { | |||
992 | fn while_expr() { | 987 | fn while_expr() { |
993 | check_types( | 988 | check_types( |
994 | r#" | 989 | r#" |
995 | enum Option<T> { None, Some(T) } | 990 | //- minicore: option |
996 | use Option::*; | ||
997 | |||
998 | struct Test { a: Option<u32>, b: u8 } | 991 | struct Test { a: Option<u32>, b: u8 } |
999 | 992 | ||
1000 | fn main() { | 993 | fn main() { |
@@ -1010,9 +1003,7 @@ fn main() { | |||
1010 | fn match_arm_list() { | 1003 | fn match_arm_list() { |
1011 | check_types( | 1004 | check_types( |
1012 | r#" | 1005 | r#" |
1013 | enum Option<T> { None, Some(T) } | 1006 | //- minicore: option |
1014 | use Option::*; | ||
1015 | |||
1016 | struct Test { a: Option<u32>, b: u8 } | 1007 | struct Test { a: Option<u32>, b: u8 } |
1017 | 1008 | ||
1018 | fn main() { | 1009 | fn main() { |