Skip to content

Commit

Permalink
Includes deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
adomasbaliuka authored Aug 5, 2024
1 parent 49242e0 commit a8683f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Init/Tactics.lean
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ macro "sorry" : tactic => `(tactic| exact @sorryAx _ false)

/-- `admit` is a shorthand for `exact sorry`. -/
@[deprecated (since := "2024-08-04")]
macro "admit" : tactic => `(tactic| exact @sorryAx _ false)
macro "admit" : tactic => `(tactic|
(run_tac logWarning "`admit` is deprecated and will be removed in the future. Use `sorry` instead!"
exact @sorryAx _ false))

/--
`infer_instance` is an abbreviation for `exact inferInstance`.
Expand Down

0 comments on commit a8683f2

Please sign in to comment.