improve deprecation error messages (#20197)

This commit is contained in:
ringabout
2022-08-11 14:04:12 +08:00
committed by GitHub
parent 31b7a25e1e
commit e559cd0c3a

View File

@@ -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