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`
This commit is contained in:
commit
3c145ff283
1 changed files with 1 additions and 2 deletions
|
@ -139,8 +139,7 @@ pub enum ProcessResult<O, E> {
|
||||||
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
|
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
|
||||||
struct ObligationTreeId(usize);
|
struct ObligationTreeId(usize);
|
||||||
|
|
||||||
type ObligationTreeIdGenerator =
|
type ObligationTreeIdGenerator = impl Iterator<Item = ObligationTreeId>;
|
||||||
std::iter::Map<std::ops::RangeFrom<usize>, fn(usize) -> ObligationTreeId>;
|
|
||||||
|
|
||||||
pub struct ObligationForest<O: ForestObligation> {
|
pub struct ObligationForest<O: ForestObligation> {
|
||||||
/// The list of obligations. In between calls to [Self::process_obligations],
|
/// The list of obligations. In between calls to [Self::process_obligations],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue