Skip to content

Commit 8fce30e

Browse files
authored
chore: change grind.warning default to false (#8698)
This PR turns off the default warning when using `grind`, in preparation for v4.22. I'll removing all the `set_option grind.warning false` in our codebase in a second PR, after an update-stage0.
1 parent 308a383 commit 8fce30e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Lean/Elab/Tactic/Grind.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def evalGrindCore
182182
let only := only.isSome
183183
let params := if let some params := params then params.getElems else #[]
184184
if Grind.grind.warning.get (← getOptions) then
185-
logWarningAt ref "The `grind` tactic is experimental and still under development. Avoid using it in production projects."
185+
logWarningAt ref "The `grind` tactic is new and its behaviour may change in the future. This project has used `set_option grind.warning true` to discourage its use."
186186
withMainContext do
187187
let result ← grind (← getMainGoal) config only params fallback
188188
replaceMainGoal []

src/Lean/Meta/Tactic/Grind/Types.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ register_builtin_option grind.debug.proofs : Bool := {
4848
}
4949

5050
register_builtin_option grind.warning : Bool := {
51-
defValue := true
51+
defValue := false
5252
group := "debug"
53-
descr := "disable `grind` usage warning"
53+
descr := "generate a warning whenever `grind` is used"
5454
}
5555

5656
/--

0 commit comments

Comments
 (0)