aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-06-17 09:28:44 +0100
committerAleksey Kladov <[email protected]>2021-06-17 09:28:44 +0100
commitc42cdff3d2ed2e30add09dd0d602181b6f83534d (patch)
treeb927b06a3f866f6ebac907d7714fa05af7422d4e /crates/ide/src
parent9b3aa591cd0672e9b7bdf3e5aab630cd09a4d546 (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/src')
-rw-r--r--crates/ide/src/inlay_hints.rs6
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
822use core::iter; 822use core::iter;
823 823
824pub struct SomeIter<T> {} 824pub 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
1130use core::iter; 1130use core::iter;
1131 1131
1132struct MyIter; 1132struct 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
1361use core::iter; 1361use core::iter;
1362 1362
1363struct MyIter; 1363struct MyIter;