summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-12-17 23:53:43 -0800
committerGitHub <noreply@github.com>2020-12-18 08:53:43 +0100
commitdf17cf5e9e1afae333d9ab755d19d1c9d4d60a0f (patch)
treeb45543d7adade3629d89df01fc6990d0cb0d2be3
parent868c31e88a68ce16c5c0d9283a41fb3cfcec4c41 (diff)
downloadNim-df17cf5e9e1afae333d9ab755d19d1c9d4d60a0f.tar.gz
misc cleanups (#16383)
-rw-r--r--compiler/docgen.nim7
-rw-r--r--compiler/modulegraphs.nim2
-rw-r--r--lib/system.nim6
3 files changed, 8 insertions, 7 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim
index 824fafd6b..d21db7634 100644
--- a/compiler/docgen.nim
+++ b/compiler/docgen.nim
@@ -7,20 +7,21 @@
 #    distribution, for details about the copyright.
 #
 
-# This is the documentation generator. It is currently pretty simple: No
-# semantic checking is done for the code. Cross-references are generated
+# This is the documentation generator. Cross-references are generated
 # by knowing how the anchors are going to be named.
 
 import
   ast, strutils, strtabs, options, msgs, os, ropes, idents,
   wordrecg, syntaxes, renderer, lexer, packages/docutils/rstast,
   packages/docutils/rst, packages/docutils/rstgen,
-  json, xmltree, cgi, trees, types,
+  json, xmltree, trees, types,
   typesrenderer, astalgo, lineinfos, intsets,
   pathutils, trees, tables, nimpaths, renderverbatim, osproc
 
+from uri import encodeUrl
 from std/private/globs import nativeToUnixPath
 
+
 const
   exportSection = skField
   docCmdSkip = "skip"
diff --git a/compiler/modulegraphs.nim b/compiler/modulegraphs.nim
index abbefa9b6..e3c54eeae 100644
--- a/compiler/modulegraphs.nim
+++ b/compiler/modulegraphs.nim
@@ -28,7 +28,7 @@
 import ast, intsets, tables, options, lineinfos, hashes, idents,
   incremental, btrees, md5
 
-import ic / packed_ast
+# import ic / packed_ast
 
 type
   SigHash* = distinct MD5Digest
diff --git a/lib/system.nim b/lib/system.nim
index afd8e467d..0797b7caf 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -873,9 +873,9 @@ else:
   template `<//>`*(t: untyped): untyped = t
 
 template disarm*(x: typed) =
-  ## Useful for ``disarming`` dangling pointers explicitly for the
-  ## --newruntime. Regardless of whether --newruntime is used or not
-  ## this sets the pointer or callback ``x`` to ``nil``. This is an
+  ## Useful for `disarming` dangling pointers explicitly for `--newruntime`.
+  ## Regardless of whether `--newruntime` is used or not
+  ## this sets the pointer or callback `x` to `nil`. This is an
   ## experimental API!
   x = nil