diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-01-21 20:12:40 +0100 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-01-21 20:13:56 +0100 |
| commit | f74ca88384cbce7e318a7a0142a9ac3eda6b8641 (patch) | |
| tree | d619c9ae3d6c787647e6a180b76cad79fd9296a9 /compiler/rustc_data_structures/src | |
| parent | e098eb17e1514bcd604ac4bd57cec362944687af (diff) | |
| download | rust-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.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], |
