feat(frontends/lean): make sure the proof state bit "report errors" is
set in the beginning of each begin-end element see discussion at #583
This commit is contained in:
parent
5798ac43de
commit
e0b7017435
2 changed files with 2 additions and 0 deletions
|
@ -1764,6 +1764,7 @@ bool elaborator::try_using_begin_end(substitution & subst, expr const & mvar, pr
|
||||||
expr new_ptac = subst.instantiate_all(ptac);
|
expr new_ptac = subst.instantiate_all(ptac);
|
||||||
if (auto tac = pre_tactic_to_tactic(new_ptac)) {
|
if (auto tac = pre_tactic_to_tactic(new_ptac)) {
|
||||||
try {
|
try {
|
||||||
|
ps = ps.update_report_failure(true);
|
||||||
proof_state_seq seq = (*tac)(env(), ios(), ps);
|
proof_state_seq seq = (*tac)(env(), ios(), ps);
|
||||||
auto r = seq.pull();
|
auto r = seq.pull();
|
||||||
if (!r) {
|
if (!r) {
|
||||||
|
|
|
@ -1422,6 +1422,7 @@ class rewrite_fn {
|
||||||
r = format("invalid 'rewrite' tactic, "
|
r = format("invalid 'rewrite' tactic, "
|
||||||
"rewrite step produced type incorrect term");
|
"rewrite step produced type incorrect term");
|
||||||
if (saved_ex) {
|
if (saved_ex) {
|
||||||
|
r += line();
|
||||||
r += saved_ex->pp(fmt);
|
r += saved_ex->pp(fmt);
|
||||||
r += line();
|
r += line();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue