Skip to content

Commit

Permalink
Catch leftover assumed declarations at codegen time
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kM committed Feb 11, 2025
1 parent 58a7ffb commit 409c23c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PrintMiniRust.ml
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,8 @@ let rec print_decl env (d: decl) =
group (print_meta meta ^^ string "type" ^/^ string target_name ^^ print_generic_params generic_params ^/^ equals) ^/^
group (print_typ env body ^^ semi)
(* Assumed declarations correspond to externals, which were propagated for mutability inference purposes.
We do not emit them *)
| Assumed _ -> empty
They should have been filtered out during the MiniRust cleanup *)
| Assumed _ -> failwith "Assumed declaration remaining"

and print_derives traits =
group @@
Expand Down

0 comments on commit 409c23c

Please sign in to comment.