improve deprecation error messages (#20197)

This commit is contained in:
ringabout 2022-08-11 14:04:12 +08:00 • committed by GitHub
commit e559cd0c3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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