Skip to content

Commit 674dd31

Browse files
authored
chore: silence unreachableTactic test (#798)
* chore: silence unreachableTactic test * fix comment
1 parent f635b69 commit 674dd31

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/lint_unreachableTactic.lean

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import Batteries.Linter.UnreachableTactic
22

3+
-- The warning generated by `linter.unreachableTactic` is not suppressed by `#guard_msgs`,
4+
-- because the linter is run on `#guard_msgs` itself. This is a known issue, see
5+
-- https://leanprover.zulipchat.com/#narrow/stream/348111-batteries/topic/unreachableTactic.20linter.20not.20suppressed.20by.20.60.23guard_msgs.60
6+
-- We jump through an extra hoop here to silence the warning.
7+
set_option linter.unreachableTactic false in
8+
#guard_msgs(drop warning) in
9+
set_option linter.unreachableTactic true in
310
/--
411
warning: this tactic is never executed
512
note: this linter can be disabled with `set_option linter.unreachableTactic false`

0 commit comments

Comments
 (0)