chore: fix namespaces in recently upstreamed tactics (#3672)
This commit is contained in:
parent
8e96d7ba1d
commit
88b1751b54
2 changed files with 6 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ prelude
|
|||
import Lean.Elab.ElabRules
|
||||
import Lean.Meta.Tactic.TryThis
|
||||
|
||||
namespace Std.Tactic
|
||||
namespace Lean.Elab.Tactic.ShowTerm
|
||||
open Lean Elab Term Tactic Meta.Tactic.TryThis Parser.Tactic
|
||||
|
||||
@[builtin_tactic showTerm] def evalShowTerm : Tactic := fun stx =>
|
||||
|
|
@ -26,3 +26,5 @@ open Lean Elab Term Tactic Meta.Tactic.TryThis Parser.Tactic
|
|||
addTermSuggestion tk (← instantiateMVars e).headBeta (origSpan? := ← getRef)
|
||||
pure e
|
||||
| _, _ => throwUnsupportedSyntax
|
||||
|
||||
end Lean.Elab.Tactic.ShowTerm
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ register_option linter.unnecessarySimpa : Bool := {
|
|||
descr := "enable the 'unnecessary simpa' linter"
|
||||
}
|
||||
|
||||
namespace Std.Tactic.Simpa
|
||||
namespace Lean.Elab.Tactic.Simpa
|
||||
|
||||
open Lean Parser.Tactic Elab Meta Term Tactic Simp Linter
|
||||
|
||||
|
|
@ -86,3 +86,5 @@ deriving instance Repr for UseImplicitLambdaResult
|
|||
| _ => unreachable!
|
||||
TryThis.addSuggestion tk stx (origSpan? := ← getRef)
|
||||
| _ => throwUnsupportedSyntax
|
||||
|
||||
end Lean.Elab.Tactic.Simpa
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue