From e4522dc87f010eebc3e3ded9c3d2ec4ebe3335d9 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Thu, 4 Apr 2024 18:53:30 +0800 Subject: [PATCH] remove `internalNew` from system (#23475) --- changelog.md | 1 + lib/system.nim | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index e26e984e60c1..82736d09a1c5 100644 --- a/changelog.md +++ b/changelog.md @@ -13,6 +13,7 @@ (a, b) = (1, 2, 3, 4) ``` will no longer compile. +- `internalNew` is removed from system, use `new` instead. ## Standard library additions and changes diff --git a/lib/system.nim b/lib/system.nim index 9b556d008cc7..e34538a89369 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -125,9 +125,6 @@ proc unsafeAddr*[T](x: T): ptr T {.magic: "Addr", noSideEffect.} = const ThisIsSystem = true -proc internalNew*[T](a: var ref T) {.magic: "New", noSideEffect.} - ## Leaked implementation detail. Do not use. - proc new*[T](a: var ref T, finalizer: proc (x: ref T) {.nimcall.}) {. magic: "NewFinalize", noSideEffect.} ## Creates a new object of type `T` and returns a safe (traced)