diff options
author | Aleksey Kladov <[email protected]> | 2021-06-17 09:28:44 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-06-17 09:28:44 +0100 |
commit | c42cdff3d2ed2e30add09dd0d602181b6f83534d (patch) | |
tree | b927b06a3f866f6ebac907d7714fa05af7422d4e /crates/ide | |
parent | 9b3aa591cd0672e9b7bdf3e5aab630cd09a4d546 (diff) |
internal: minimize minicore
We want to keep minicore small, so let's split out iterator adapters and
sources into a separate `iterators` region, and use them only when
needed.
Diffstat (limited to 'crates/ide')
-rw-r--r-- | crates/ide/src/inlay_hints.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide/src/inlay_hints.rs b/crates/ide/src/inlay_hints.rs index a6ba3d734..335d57a0d 100644 --- a/crates/ide/src/inlay_hints.rs +++ b/crates/ide/src/inlay_hints.rs | |||
@@ -818,7 +818,7 @@ fn main() { | |||
818 | fn shorten_iterators_in_associated_params() { | 818 | fn shorten_iterators_in_associated_params() { |
819 | check_types( | 819 | check_types( |
820 | r#" | 820 | r#" |
821 | //- minicore: iterator | 821 | //- minicore: iterators |
822 | use core::iter; | 822 | use core::iter; |
823 | 823 | ||
824 | pub struct SomeIter<T> {} | 824 | pub struct SomeIter<T> {} |
@@ -1126,7 +1126,7 @@ fn main() { | |||
1126 | fn shorten_iterator_hints() { | 1126 | fn shorten_iterator_hints() { |
1127 | check_types( | 1127 | check_types( |
1128 | r#" | 1128 | r#" |
1129 | //- minicore: iterator | 1129 | //- minicore: iterators |
1130 | use core::iter; | 1130 | use core::iter; |
1131 | 1131 | ||
1132 | struct MyIter; | 1132 | struct MyIter; |
@@ -1357,7 +1357,7 @@ fn main() { | |||
1357 | max_length: None, | 1357 | max_length: None, |
1358 | }, | 1358 | }, |
1359 | r#" | 1359 | r#" |
1360 | //- minicore: iterator | 1360 | //- minicore: iterators |
1361 | use core::iter; | 1361 | use core::iter; |
1362 | 1362 | ||
1363 | struct MyIter; | 1363 | struct MyIter; |