fix: make Term.mkAuxName async-compatible (#7468)
This commit is contained in:
parent
137f559520
commit
a014ae1001
1 changed files with 1 additions and 1 deletions
|
|
@ -1891,7 +1891,7 @@ def addAutoBoundImplicits' (xs : Array Expr) (type : Expr) (k : Array Expr → E
|
|||
forallBoundedTelescope (← mkForallFVars xs type) xs.size fun xs type => k xs type
|
||||
|
||||
def mkAuxName (suffix : Name) : TermElabM Name := do
|
||||
match (← read).declName? with
|
||||
match (← read).declName? <|> (← getEnv).asyncPrefix? with
|
||||
| none => Lean.mkAuxName (mkPrivateName (← getEnv) `aux) 1
|
||||
| some declName => Lean.mkAuxName (declName ++ suffix) 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue