lean4-htt/src/Lean/DocString
David Thrane Christiansen 4338a8be32
fix: better error message on missing declaration name for docstring (#10608)
This PR fixes a bad error message due to elaborating partial syntax with
Verso docstrings.

When elaborating partial syntax, the elaborator sometimes attempts to
add a docstring for a declaration that it didn't parse a name for. The
name defaults to anonymous, but inserting the docs for the anonymous
name throws a panic about being on the wrong async branch.

With this change, the reported error is the expected parser error
instead, which is much friendlier.
2025-09-29 06:26:08 +00:00
..
Add.lean fix: better error message on missing declaration name for docstring (#10608) 2025-09-29 06:26:08 +00:00
Extension.lean feat: improvements to Verso docstrings (#10479) 2025-09-20 22:05:57 +00:00
Formatter.lean chore: minor module system fixes from batteries port (#10496) 2025-09-24 08:59:23 +00:00
Links.lean feat: docstrings with Verso syntax (#10307) 2025-09-10 07:03:57 +00:00
Markdown.lean feat: improvements to Verso docstrings (#10479) 2025-09-20 22:05:57 +00:00
Parser.lean chore: minor module system fixes from batteries port (#10496) 2025-09-24 08:59:23 +00:00
Syntax.lean feat: improvements to Verso docstrings (#10479) 2025-09-20 22:05:57 +00:00
Types.lean feat: linear-size Ord instance (#10270) 2025-09-19 14:13:57 +00:00