aboutsummaryrefslogtreecommitdiff
path: root/crates/ide
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
parentcc73abf72c46d9f13a176d93d1d38f3a72d638e3 (diff)
minor: use minicore
Diffstat (limited to 'crates/ide')
-rw-r--r--crates/ide/src/inlay_hints.rs17
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#"
664enum Option<T> { None, Some(T) } 664//- minicore: option
665use Option::*;
666
667struct FileId {} 665struct FileId {}
668struct SmolStr {} 666struct 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
876fn foo() -> impl Fn() { loop {} } 873fn foo() -> impl Fn() { loop {} }
877fn foo1() -> impl Fn(f64) { loop {} } 874fn foo1() -> impl Fn(f64) { loop {} }
878fn foo2() -> impl Fn(f64, f64) { loop {} } 875fn 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#"
963enum Option<T> { None, Some(T) } 960//- minicore: option
964use Option::*;
965
966struct Test { a: Option<u32>, b: u8 } 961struct Test { a: Option<u32>, b: u8 }
967 962
968fn main() { 963fn 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#"
995enum Option<T> { None, Some(T) } 990//- minicore: option
996use Option::*;
997
998struct Test { a: Option<u32>, b: u8 } 991struct Test { a: Option<u32>, b: u8 }
999 992
1000fn main() { 993fn 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#"
1013enum Option<T> { None, Some(T) } 1006//- minicore: option
1014use Option::*;
1015
1016struct Test { a: Option<u32>, b: u8 } 1007struct Test { a: Option<u32>, b: u8 }
1017 1008
1018fn main() { 1009fn main() {