From e8ae2dc90ba62466b3aba212df133f7ad564cbab Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Tue, 9 Aug 2022 16:32:29 +0800 Subject: bootstrap the compiler with nimPreviewSlimSystem (#20176) * bootstrap the compiler with nimPreviewSlimSystem * threads --- lib/pure/strscans.nim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/pure/strscans.nim') diff --git a/lib/pure/strscans.nim b/lib/pure/strscans.nim index 99442075a..7db6f28af 100644 --- a/lib/pure/strscans.nim +++ b/lib/pure/strscans.nim @@ -286,6 +286,10 @@ efficiency and perform different checks. import macros, parseutils import std/private/since +when defined(nimPreviewSlimSystem): + import std/assertions + + proc conditionsToIfChain(n, idx, res: NimNode; start: int): NimNode = assert n.kind == nnkStmtList if start >= n.len: return newAssignment(res, newLit true) -- cgit 1.4.1-2-gfad0