summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
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})