mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 11:24:24 +00:00
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.
This commit is contained in:
parent
9b3aa591cd
commit
c42cdff3d2
3 changed files with 36 additions and 59 deletions
|
@ -818,7 +818,7 @@ fn main() {
|
|||
fn shorten_iterators_in_associated_params() {
|
||||
check_types(
|
||||
r#"
|
||||
//- minicore: iterator
|
||||
//- minicore: iterators
|
||||
use core::iter;
|
||||
|
||||
pub struct SomeIter<T> {}
|
||||
|
@ -1126,7 +1126,7 @@ fn main() {
|
|||
fn shorten_iterator_hints() {
|
||||
check_types(
|
||||
r#"
|
||||
//- minicore: iterator
|
||||
//- minicore: iterators
|
||||
use core::iter;
|
||||
|
||||
struct MyIter;
|
||||
|
@ -1357,7 +1357,7 @@ fn main() {
|
|||
max_length: None,
|
||||
},
|
||||
r#"
|
||||
//- minicore: iterator
|
||||
//- minicore: iterators
|
||||
use core::iter;
|
||||
|
||||
struct MyIter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue