summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2022-01-31 20:49:20 +0800
committerGitHub <noreply@github.com>2022-01-31 13:49:20 +0100
commit56a901f9e197dd03f8c70ab4ef1042dc33548af0 (patch)
tree8e99adbedba5b33aa75657d176542d79247ab7b0 /compiler
parent33cd883e27f7ba7564cbeb59d2d38fe02bb507bf (diff)
downloadNim-56a901f9e197dd03f8c70ab4ef1042dc33548af0.tar.gz
fix broken CI (#19472)
* fix broken CI

* fix

* fix tests
Diffstat (limited to 'compiler')
-rw-r--r--compiler/docgen.nim1
-rw-r--r--compiler/lineinfos.nim2
2 files changed, 3 insertions, 0 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim
index 235922349..3e61032d8 100644
--- a/compiler/docgen.nim
+++ b/compiler/docgen.nim
@@ -237,6 +237,7 @@ template declareClosures =
     of meInvalidDirective: k = errRstInvalidDirectiveX
     of meInvalidField: k = errRstInvalidField
     of meFootnoteMismatch: k = errRstFootnoteMismatch
+    of meSandboxedDirective: k = errRstSandboxedDirective
     of mwRedefinitionOfLabel: k = warnRstRedefinitionOfLabel
     of mwUnknownSubstitution: k = warnRstUnknownSubstitutionX
     of mwAmbiguousLink: k = warnRstAmbiguousLink
diff --git a/compiler/lineinfos.nim b/compiler/lineinfos.nim
index e13387be6..575be6196 100644
--- a/compiler/lineinfos.nim
+++ b/compiler/lineinfos.nim
@@ -39,6 +39,7 @@ type
     errRstInvalidDirectiveX,
     errRstInvalidField,
     errRstFootnoteMismatch,
+    errRstSandboxedDirective,
     errProveInit, # deadcode
     errGenerated,
     errUser,
@@ -110,6 +111,7 @@ const
     errRstInvalidDirectiveX: "invalid directive: '$1'",
     errRstInvalidField: "invalid field: $1",
     errRstFootnoteMismatch: "number of footnotes and their references don't match: $1",
+    errRstSandboxedDirective: "disabled directive: '$1'",
     errProveInit: "Cannot prove that '$1' is initialized.",  # deadcode
     errGenerated: "$1",
     errUser: "$1",