about summary refs log tree commit diff
path: root/compiler/rustc_data_structures
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-01-26 15:02:21 +0100
committerGitHub <noreply@github.com>2023-01-26 15:02:21 +0100
commit3c145ff283bf24efe499bbf37327fbc3fbc28a07 (patch)
tree5d107cbbe43f1f94b6858f79a1ed774fd347d235 /compiler/rustc_data_structures
parent70a665a005857a4a44922a4bc3eb29e80e2b941a (diff)
parentf74ca88384cbce7e318a7a0142a9ac3eda6b8641 (diff)
downloadrust-3c145ff283bf24efe499bbf37327fbc3fbc28a07.tar.gz
rust-3c145ff283bf24efe499bbf37327fbc3fbc28a07.zip
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`
Diffstat (limited to 'compiler/rustc_data_structures')
-rw-r--r--compiler/rustc_data_structures/src/obligation_forest/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_data_structures/src/obligation_forest/mod.rs b/compiler/rustc_data_structures/src/obligation_forest/mod.rs
index 10e673cd929..dda422c6dd0 100644
--- a/compiler/rustc_data_structures/src/obligation_forest/mod.rs
+++ b/compiler/rustc_data_structures/src/obligation_forest/mod.rs
@@ -139,8 +139,7 @@ pub enum ProcessResult<O, E> {
 #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
 struct ObligationTreeId(usize);
 
-type ObligationTreeIdGenerator =
-    std::iter::Map<std::ops::RangeFrom<usize>, fn(usize) -> ObligationTreeId>;
+type ObligationTreeIdGenerator = impl Iterator<Item = ObligationTreeId>;
 
 pub struct ObligationForest<O: ForestObligation> {
     /// The list of obligations. In between calls to [Self::process_obligations],