Skip to content

Commit

Permalink
fix: rustc update minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Franceschino committed Jul 1, 2024
1 parent 0759a76 commit d4c61fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/driver/src/exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn write_files(
path.extension().unwrap().to_str().unwrap()
));
std::fs::write(&path, sourcemap).unwrap_or_else(|e| {
session.fatal(format!(
tcx.dcx().fatal(format!(
"Unable to write to file {:#?}. Error: {:#?}",
path, e
))
Expand Down
3 changes: 1 addition & 2 deletions engine/lib/new_generic_printer/new_rust_printer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ module Make (F : Features.T) = struct
| Float { value; kind; negative } ->
string value
|> precede (if negative then minus else empty)
|> terminate
(string (match kind with F32 -> "f32" | F64 -> "f64"))
|> terminate (string (Ast.show_float_kind kind))
| Bool b -> OCaml.bool b

method ty_ _ _ctx _typ = unimplemented "ty_"
Expand Down

0 comments on commit d4c61fa

Please sign in to comment.