diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-01-26 15:02:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-26 15:02:21 +0100 |
| commit | 3c145ff283bf24efe499bbf37327fbc3fbc28a07 (patch) | |
| tree | 5d107cbbe43f1f94b6858f79a1ed774fd347d235 /compiler/rustc_data_structures/src | |
| parent | 70a665a005857a4a44922a4bc3eb29e80e2b941a (diff) | |
| parent | f74ca88384cbce7e318a7a0142a9ac3eda6b8641 (diff) | |
| download | rust-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/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/obligation_forest/mod.rs | 3 |
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], |
