Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Lean/Elab/Binders.lean
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Returns the declaration name.
-/
def declareTacticSyntax (tactic : Syntax) (name? : Option Name := none) : TermElabM Name :=
withFreshMacroScope do
let name ← name?.getDM do MonadQuotation.addMacroScope ((← getEnv).asyncPrefix?.getD .anonymous ++ `_auto)
let name ← name?.getDM (mkAuxDeclName `_auto)
let type := Lean.mkConst `Lean.Syntax
let value ← quoteAutoTactic tactic
trace[Elab.autoParam] value
Expand Down
2 changes: 1 addition & 1 deletion tests/lean/run/3257.lean
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ example : U := by

/--
trace: [Meta.Tactic.simp.discharge] bar discharge ✅️
autoParam T _auto✝
autoParam T bar._auto_1
[Meta.Tactic.simp.rewrite] T.mk:1000:
T
==>
Expand Down
2 changes: 1 addition & 1 deletion tests/lean/run/cleanup_forallTelescope.lean
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def f (x := 0) (_ : x = x := by rfl) : Nat := x+1


/--
info: (x : optParam Nat 0) → autoParam (x = x) _auto✝ → Nat
info: (x : optParam Nat 0) → autoParam (x = x) f._auto_1 → Nat
---
(x : Nat) → x = x → Nat
-/
Expand Down
Loading