mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-04 02:44:44 +00:00
two 2.0-specific fixes
This commit is contained in:
@@ -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])
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user