We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdaa393 commit 2fb3433Copy full SHA for 2fb3433
chalk-recursive/src/recursive.rs
@@ -60,26 +60,6 @@ impl<I: Interner> fmt::Debug for RecursiveSolver<I> {
60
}
61
62
63
-/// An extension trait for merging `Result`s
64
-trait MergeWith<T> {
65
- fn merge_with<F>(self, other: Self, f: F) -> Self
66
- where
67
- F: FnOnce(T, T) -> T;
68
-}
69
-
70
-impl<T> MergeWith<T> for Fallible<T> {
71
- fn merge_with<F>(self: Fallible<T>, other: Fallible<T>, f: F) -> Fallible<T>
72
73
- F: FnOnce(T, T) -> T,
74
- {
75
- match (self, other) {
76
- (Err(_), Ok(v)) | (Ok(v), Err(_)) => Ok(v),
77
- (Ok(v1), Ok(v2)) => Ok(f(v1, v2)),
78
- (Err(_), Err(e)) => Err(e),
79
- }
80
81
82
83
impl<I: Interner> RecursiveContext<I> {
84
pub fn new(
85
overflow_depth: usize,
0 commit comments