Skip to content

Commit

Permalink
merge impl blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Aug 12, 2024
1 parent e83eacd commit 0c75c08
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions compiler/rustc_type_ir/src/search_graph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ impl UsageKind {
}
}

enum StepResult<X: Cx> {
Done(StackEntry<X>, X::Result),
HasChanged,
}

#[derive(Debug, Clone, Copy)]
struct AvailableDepth(usize);
impl AvailableDepth {
Expand Down Expand Up @@ -559,14 +564,7 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> {
)
})
}
}

enum StepResult<X: Cx> {
Done(StackEntry<X>, X::Result),
HasChanged,
}

impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> {
/// When we encounter a coinductive cycle, we have to fetch the
/// result of that cycle while we are still computing it. Because
/// of this we continuously recompute the cycle until the result
Expand Down

0 comments on commit 0c75c08

Please sign in to comment.