mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Remove problems from error type API surface
This commit is contained in:
parent
b6322ff883
commit
09748aec48
5 changed files with 32 additions and 45 deletions
|
@ -2041,11 +2041,7 @@ impl Subs {
|
|||
explicit_substitute(self, x, y, z, &mut seen)
|
||||
}
|
||||
|
||||
pub fn var_to_error_type(
|
||||
&mut self,
|
||||
var: Variable,
|
||||
observed_pol: Polarity,
|
||||
) -> (ErrorType, Vec<Problem>) {
|
||||
pub fn var_to_error_type(&mut self, var: Variable, observed_pol: Polarity) -> ErrorType {
|
||||
self.var_to_error_type_contextual(var, ErrorTypeContext::None, observed_pol)
|
||||
}
|
||||
|
||||
|
@ -2054,7 +2050,7 @@ impl Subs {
|
|||
var: Variable,
|
||||
context: ErrorTypeContext,
|
||||
observed_pol: Polarity,
|
||||
) -> (ErrorType, Vec<Problem>) {
|
||||
) -> ErrorType {
|
||||
let names = get_var_names(self, var, ImMap::default());
|
||||
let mut taken = MutSet::default();
|
||||
|
||||
|
@ -2069,7 +2065,7 @@ impl Subs {
|
|||
recursive_tag_unions_seen: Vec::new(),
|
||||
};
|
||||
|
||||
(var_to_err_type(self, &mut state, var, observed_pol), vec![])
|
||||
var_to_err_type(self, &mut state, var, observed_pol)
|
||||
}
|
||||
|
||||
pub fn len(&self) -> usize {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue