two 2.0-specific fixes

This commit is contained in:
narimiran
2024-10-28 14:18:56 +01:00
parent 75bd2d0688
commit 3713994ef1
2 changed files with 1 additions and 3 deletions

View File

@@ -1059,8 +1059,7 @@ proc track(tracked: PEffects, n: PNode) =
# bug #15038: ensure consistency
if n.typ == nil or (not hasDestructor(n.typ) and sameType(n.typ, n.sym.typ)): n.typ = n.sym.typ
of nkHiddenAddr, nkAddr:
if n[0].kind == nkSym and isLocalSym(tracked, n[0].sym) and
n.typ.kind notin {tyVar, tyLent}:
if n[0].kind == nkSym and isLocalSym(tracked, n[0].sym):
useVarNoInitCheck(tracked, n[0], n[0].sym)
else:
track(tracked, n[0])

View File

@@ -60,7 +60,6 @@ pkg "confutils", "nimble install -y toml_serialization json_serialization unitte
pkg "constantine", "nimble make_lib"
pkg "criterion"
pkg "dashing", "nim c tests/functional.nim"
pkg "datamancer", url = "https://github.com/nim-lang/Datamancer"
pkg "delaunay"
pkg "docopt"
pkg "dotenv"