Skip to content

Commit 7ca84ef

Browse files
committed
fix import kind for error explanations
1 parent 0601dd2 commit 7ca84ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Lean/Elab/ErrorExplanation.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ open Command in
103103
| `(registerErrorExplanationStx| $docStx:docComment register_error_explanation%$cmd $id:ident $t:term) => withRef cmd do
104104
unless (← getEnv).contains ``ErrorExplanation.Metadata do
105105
throwError "To use this command, add `import Lean.ErrorExplanation` to the header of this file"
106-
recordExtraModUseFromDecl ``ErrorExplanation.Metadata (isMeta := false)
106+
withoutExporting <| recordExtraModUseFromDecl ``ErrorExplanation.Metadata (isMeta := true)
107107
let tp := mkConst ``ErrorExplanation.Metadata
108108
let metadata ← runTermElabM <| fun _ => unsafe do
109109
let e ← elabTermEnsuringType t tp

0 commit comments

Comments
 (0)