add -d:nimStrictMode in CI to keep code from regressing; fixes ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764)

This commit is contained in:
Timothee Cour
2021-02-17 10:30:09 -08:00
committed by GitHub
parent 35e14998ec
commit 31bb67a309
20 changed files with 43 additions and 23 deletions

View File

@@ -126,4 +126,5 @@ proc initDefines*(symbols: StringTableRef) =
defineSymbol("nimHasCastPragmaBlocks")
defineSymbol("nimHasDeclaredLocs")
defineSymbol("nimHasJsBigIntBackend")
defineSymbol("nimHasWarningAsError")
defineSymbol("nimHasHintAsError")

View File

@@ -32,8 +32,6 @@
import ast, types, intsets, lineinfos, renderer
import std/private/asciitables
from patterns import sameTrees
type
InstrKind* = enum
goto, fork, def, use