Closed
Description
I started to get the following error with my nightly builds around two days ago:
error: reached the type-length limit while instantiating `<std::iter::Filter<I, P> as std::iter::Iterator><std::iter::Enum...`
|
= note: consider adding a `#![type_length_limit="2097152"]` attribute to your crate
Using cargo-bisect-rustc
I got the following commit f565cdd and after building rustc manually I got down to this #58730 PR.
After poking around my project I found the keys
method in here https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=151ab7543368e8ad2dbf3ff8c2a8e361 was causing the issue (stubbing out the method fixed the error) but I haven't been able to reproduce this outside of my codebase (this code is used as a separate crate)
Following the note
on the error causes the error still to happen until increasing it to #![type_length_limit="8388608"]
Sorry I can't be more helpful with a way to reproduce this at the moment