about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-01-21 20:12:40 +0100
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-01-21 20:13:56 +0100
commitf74ca88384cbce7e318a7a0142a9ac3eda6b8641 (patch)
treed619c9ae3d6c787647e6a180b76cad79fd9296a9 /compiler/rustc_data_structures/src
parente098eb17e1514bcd604ac4bd57cec362944687af (diff)
downloadrust-f74ca88384cbce7e318a7a0142a9ac3eda6b8641.tar.gz
rust-f74ca88384cbce7e318a7a0142a9ac3eda6b8641.zip
Use a type-alias-impl-trait in `ObligationForest`
Diffstat (limited to 'compiler/rustc_data_structures/src')
-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],