Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
CohenArthur committed Jan 16, 2024
1 parent c158e6b commit b2005dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions typecheck/src/actual.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ fn innermost_type(
// }
}

struct TypeLinkResolver<'ctx>{old: &'ctx TypeCtx<TypeLinkMap>, new: TypeCtx<TypeMap>};
struct TypeLinkResolver<'ctx> {
old: &'ctx TypeCtx<TypeLinkMap>,
new: TypeCtx<TypeMap>,
}

impl Actual {
pub fn resolve_type_links(
Expand All @@ -139,7 +142,7 @@ impl Actual {
) -> Result<TypeCtx<TypeMap>, Error> {
todo!()
}
}
}

impl<'ctx> TypeLinkResolver<'ctx> {
/// Recursively try and resolve a type link within the type context. This will update the given node's type
Expand Down
1 change: 1 addition & 0 deletions typecheck/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ impl<'ast> Pass<FlattenData<'ast>, FlattenData<'ast>, Error> for TypeCtx<TypeLin
}
};

// let mut actualized_ctx = Actual::new(self, &fir).resolve_type_links();
let mut actual_ctx = Actual::resolve_type_links(self, &fir)?;

Checker(&mut actual_ctx).traverse(&fir)?;
Expand Down

0 comments on commit b2005dd

Please sign in to comment.