Open tcr opened 7 years ago
There are a few control groups (of do, let, and case) that don't handle where right.
do
let
case
where
main.rs
Another example:
toRustType (IsPtr mut to) = let Rust.TypeName to' = toRustType to in Rust.TypeName (rustMut mut ++ to') where rustMut Rust.Mutable = "*mut " rustMut Rust.Immutable = "*const "
There are a few control groups (of
do
,let
, andcase
) that don't handlewhere
right.where
, sowhere
first needs to be stripped from the body.where
clause should be asserted to be the last item in the body.where
clause should have its own parameter in the AST node. Then it should be checked that all of these are printed inmain.rs