Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nits #3526

Merged
merged 3 commits into from
Oct 5, 2024
Merged

Nits #3526

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ocaml/fstar-lib/FStar_Tactics_Load.ml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ module EC = FStar_Errors_Codes
module EM = FStar_Errors_Msg
module O = FStar_Options

let pout s = if FStar_Compiler_Debug.any () then U.print_string s
let pout1 s x = if FStar_Compiler_Debug.any () then U.print1 s x
let perr s = if FStar_Compiler_Debug.any () then U.print_error s
let perr1 s x = if FStar_Compiler_Debug.any () then U.print1_error s x

let dynlink (fname:string) : unit =
try
perr ("Attempting to load " ^ fname ^ "\n");
pout ("Attempting to load " ^ fname ^ "\n");
Dynlink.loadfile fname
with Dynlink.Error e ->
E.log_issue_doc FStar_Compiler_Range.dummyRange EC.Error_PluginDynlink [
Expand All @@ -25,7 +27,7 @@ let dynlink (fname:string) : unit =

let load_tactic tac =
dynlink tac;
perr1 "Loaded %s\n" tac
pout1 "Loaded %s\n" tac

let load_tactics tacs =
List.iter load_tactic tacs
Expand Down
9 changes: 8 additions & 1 deletion ocaml/fstar-lib/generated/FStar_TypeChecker_Core.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/typechecker/FStar.TypeChecker.Core.fst
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ and do_check (g:env) (e:term)
)
)
else (
fail "Let binding is effectful"
fail (format1 "Let binding is effectful (lbeff = %s)" (show lb.lbeff))
)

| Tm_match {scrutinee=sc; ret_opt=None; brs=branches; rc_opt} ->
Expand Down
Loading