Skip to content

Commit

Permalink
Fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sonmarcho committed Nov 20, 2023
1 parent 5aa37b3 commit db58a6b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions compiler/ExtractBuiltin.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ open Config
open Charon.NameMatcher (* TODO: include? *)
include ExtractName (* TODO: only open? *)

let log = Logging.builtin_log

(** Small utility to memoize some computations *)
let mk_memoized (f : unit -> 'a) : unit -> 'a =
let r = ref None in
Expand Down Expand Up @@ -492,9 +494,9 @@ let builtin_trait_impls_info () : (pattern * (bool list option * string)) list =
in
[
(* core::ops::Deref<alloc::boxed::Box<T>> *)
fmt "core::ops::Deref<Box<@T>>" ();
(* core::ops::Deref<alloc::boxed::Box<T>> *)
fmt "core::ops::Deref<Box<@T>>" ();
fmt "core::ops::deref::Deref<Box<@T>>" ();
(* core::ops::DerefMut<alloc::boxed::Box<T>> *)
fmt "core::ops::deref::DerefMut<Box<@T>>" ();
(* core::ops::index::Index<[T], I> *)
fmt "core::ops::index::Index<[@T], @I>" ();
(* core::ops::index::IndexMut<[T], I> *)
Expand Down
3 changes: 3 additions & 0 deletions compiler/Logging.ml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ let pure_micro_passes_log = L.get_logger "MainLogger.PureMicroPasses"
(** Logger for ExtractBase *)
let extract_log = L.get_logger "MainLogger.ExtractBase"

(** Logger for ExtractBuiltin *)
let builtin_log = L.get_logger "MainLogger.Builtin"

(** Logger for Interpreter *)
let interpreter_log = L.get_logger "MainLogger.Interpreter"

Expand Down
1 change: 1 addition & 0 deletions compiler/Main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ let _ =
symbolic_to_pure_log#set_level EL.Info;
pure_micro_passes_log#set_level EL.Info;
extract_log#set_level EL.Info;
builtin_log#set_level EL.Info;
translate_log#set_level EL.Info;
scc_log#set_level EL.Info;
reorder_decls_log#set_level EL.Info
Expand Down

0 comments on commit db58a6b

Please sign in to comment.