Fixed formatting and clutter
This commit is contained in:
parent
9889a85d38
commit
170a1b8641
|
@ -74,7 +74,6 @@ pub fn get_exn_constructor(
|
|||
constructor: Some(signature),
|
||||
resolver: None,
|
||||
loc: None,
|
||||
// Make TopLevelDef::Class initlializer compatible
|
||||
static_fields: Default::default(),
|
||||
};
|
||||
(fun_def, class_def, signature, exn_type)
|
||||
|
@ -177,7 +176,6 @@ pub fn get_builtins(primitives: &mut (PrimitiveStore, Unifier)) -> BuiltinInfo {
|
|||
type_vars: Default::default(),
|
||||
fields: exception_fields,
|
||||
methods: Default::default(),
|
||||
// Make TopLevelDef::Class initlializer compatible
|
||||
static_fields: Default::default(),
|
||||
ancestors: vec![],
|
||||
constructor: None,
|
||||
|
@ -204,7 +202,6 @@ pub fn get_builtins(primitives: &mut (PrimitiveStore, Unifier)) -> BuiltinInfo {
|
|||
object_id: DefinitionId(10),
|
||||
type_vars: vec![option_ty_var],
|
||||
fields: vec![],
|
||||
// Make TopLevelDef::Class initlializer compatible
|
||||
static_fields: vec![],
|
||||
methods: vec![
|
||||
("is_some".into(), is_some_ty.0, DefinitionId(11)),
|
||||
|
|
|
@ -513,7 +513,7 @@ impl Unifier {
|
|||
|
||||
fn unify_impl(&mut self, a: Type, b: Type, swapped: bool) -> Result<(), TypeError> {
|
||||
use TypeEnum::*;
|
||||
|
||||
|
||||
if !swapped {
|
||||
let rep_a = self.unification_table.get_representative(a);
|
||||
let rep_b = self.unification_table.get_representative(b);
|
||||
|
|
Loading…
Reference in New Issue