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