Skip to content

Commit 0c75c08

Browse files
committed
merge impl blocks
1 parent e83eacd commit 0c75c08

File tree

1 file changed

+5
-7
lines changed
  • compiler/rustc_type_ir/src/search_graph

1 file changed

+5
-7
lines changed

compiler/rustc_type_ir/src/search_graph/mod.rs

+5-7
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ impl UsageKind {
118118
}
119119
}
120120

121+
enum StepResult<X: Cx> {
122+
Done(StackEntry<X>, X::Result),
123+
HasChanged,
124+
}
125+
121126
#[derive(Debug, Clone, Copy)]
122127
struct AvailableDepth(usize);
123128
impl AvailableDepth {
@@ -559,14 +564,7 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> {
559564
)
560565
})
561566
}
562-
}
563567

564-
enum StepResult<X: Cx> {
565-
Done(StackEntry<X>, X::Result),
566-
HasChanged,
567-
}
568-
569-
impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> {
570568
/// When we encounter a coinductive cycle, we have to fetch the
571569
/// result of that cycle while we are still computing it. Because
572570
/// of this we continuously recompute the cycle until the result

0 commit comments

Comments
 (0)