Skip to content

Commit c0bff71

Browse files
authored
cleanup: don't use Result in resolution_inference builder (#2671)
1 parent 16ffba9 commit c0bff71

2 files changed

Lines changed: 148 additions & 129 deletions

File tree

source/vir/src/ast_to_sst.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ impl Value {
157157
}
158158
}
159159

160+
impl<T> Maybe<T> {
161+
pub(crate) fn is_never(&self) -> bool {
162+
matches!(self, Maybe::Never)
163+
}
164+
}
165+
160166
impl Maybe<Value> {
161167
/// Map `to_exp` over the Some case
162168
pub(crate) fn to_maybe_exp(self) -> Maybe<Exp> {

0 commit comments

Comments
 (0)