improve deprecation error messages (#20197)
This commit is contained in:
parent
31b7a25e1e
commit
e559cd0c3a
1 changed files with 2 additions and 4 deletions
|
|
@ -1835,8 +1835,7 @@ when defined(nimV2):
|
||||||
include system/arc
|
include system/arc
|
||||||
|
|
||||||
when not defined(nimPreviewSlimSystem):
|
when not defined(nimPreviewSlimSystem):
|
||||||
{.deprecated: """assertions is about to move out of system; use `-d:nimPreviewSlimSystem` and
|
{.deprecated: "assertions is about to move out of system; use `-d:nimPreviewSlimSystem` and import `std/assertions`".}
|
||||||
import `std/assertions`.""".}
|
|
||||||
import std/assertions
|
import std/assertions
|
||||||
export assertions
|
export assertions
|
||||||
|
|
||||||
|
|
@ -3158,8 +3157,7 @@ import system/widestrs
|
||||||
export widestrs
|
export widestrs
|
||||||
|
|
||||||
when not defined(nimPreviewSlimSystem):
|
when not defined(nimPreviewSlimSystem):
|
||||||
{.deprecated: """io is about to move out of system; use `-d:nimPreviewSlimSystem` and
|
{.deprecated: "io is about to move out of system; use `-d:nimPreviewSlimSystem` and import `std/syncio`".}
|
||||||
import `std/syncio`.""".}
|
|
||||||
import std/syncio
|
import std/syncio
|
||||||
export syncio
|
export syncio
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue