mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 13:30:33 +00:00
improve deprecation error messages (#20197)
This commit is contained in:
@@ -1835,8 +1835,7 @@ when defined(nimV2):
|
||||
include system/arc
|
||||
|
||||
when not defined(nimPreviewSlimSystem):
|
||||
{.deprecated: """assertions is about to move out of system; use `-d:nimPreviewSlimSystem` and
|
||||
import `std/assertions`.""".}
|
||||
{.deprecated: "assertions is about to move out of system; use `-d:nimPreviewSlimSystem` and import `std/assertions`".}
|
||||
import std/assertions
|
||||
export assertions
|
||||
|
||||
@@ -3158,8 +3157,7 @@ import system/widestrs
|
||||
export widestrs
|
||||
|
||||
when not defined(nimPreviewSlimSystem):
|
||||
{.deprecated: """io is about to move out of system; use `-d:nimPreviewSlimSystem` and
|
||||
import `std/syncio`.""".}
|
||||
{.deprecated: "io is about to move out of system; use `-d:nimPreviewSlimSystem` and import `std/syncio`".}
|
||||
import std/syncio
|
||||
export syncio
|
||||
|
||||
|
||||
Reference in New Issue
Block a user