summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2020-09-08 14:25:25 +0200
committerGitHub <noreply@github.com>2020-09-08 14:25:25 +0200
commitc49b88163c12d18506ef43e4d26abd5d76f68359 (patch)
tree522590ff24ad68767fb00f69f51a7a062d4cb973 /compiler
parenta81610230ddacf33f11e8cc57a379f12a985f8b6 (diff)
downloadNim-c49b88163c12d18506ef43e4d26abd5d76f68359.tar.gz
"for-loop macros" are no longer an experimental feature (#15288)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/options.nim2
-rw-r--r--compiler/semstmts.nim5
2 files changed, 3 insertions, 4 deletions
diff --git a/compiler/options.nim b/compiler/options.nim
index 56b061358..14016495f 100644
--- a/compiler/options.nim
+++ b/compiler/options.nim
@@ -154,7 +154,7 @@ type
     destructor,
     notnil,
     dynamicBindSym,
-    forLoopMacros,
+    forLoopMacros, # not experimental anymore; remains here for backwards compatibility
     caseStmtMacros,
     codeReordering,
     compiletimeFFI,
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index 5599eb3ef..2c3ff2bea 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -890,9 +890,8 @@ proc handleCaseStmtMacro(c: PContext; n: PNode; flags: TExprFlags): PNode =
 
 proc semFor(c: PContext, n: PNode; flags: TExprFlags): PNode =
   checkMinSonsLen(n, 3, c.config)
-  if forLoopMacros in c.features:
-    result = handleForLoopMacro(c, n, flags)
-    if result != nil: return result
+  result = handleForLoopMacro(c, n, flags)
+  if result != nil: return result
   openScope(c)
   result = n
   n[^2] = semExprNoDeref(c, n[^2], {efWantIterator})