Related to #84447, #103723 and indexmap-rs/indexmap#242
rustc_trait_selection still has some potential query instabilities, however, trying to remove them caused regressions. This issue tracks this problem after #103723 was merged. The idea is to wait until the drain_filter method is eventually added to IndexMap which would make the change easier and hopefully solve the regression.