mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-13 23:07:21 -04:00
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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user