Skip to content

Commit 3c145ff

Browse files
authored
Rollup merge of #107168 - Nilstrieb:if-a-tait-falls-in-the-forest,can-we-know-it-wasnt-revealed, r=oli-obk
Use a type-alias-impl-trait in `ObligationForest`
2 parents 70a665a + f74ca88 commit 3c145ff

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_data_structures/src/obligation_forest

1 file changed

+1
-2
lines changed

compiler/rustc_data_structures/src/obligation_forest/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ pub enum ProcessResult<O, E> {
139139
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
140140
struct ObligationTreeId(usize);
141141

142-
type ObligationTreeIdGenerator =
143-
std::iter::Map<std::ops::RangeFrom<usize>, fn(usize) -> ObligationTreeId>;
142+
type ObligationTreeIdGenerator = impl Iterator<Item = ObligationTreeId>;
144143

145144
pub struct ObligationForest<O: ForestObligation> {
146145
/// The list of obligations. In between calls to [Self::process_obligations],

0 commit comments

Comments
 (0)