From e559cd0c3aa5baa86eb3d2f038307830080f3f7b Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Thu, 11 Aug 2022 14:04:12 +0800 Subject: [PATCH] improve deprecation error messages (#20197) --- lib/system.nim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/system.nim b/lib/system.nim index 6d737d552..738666e8d 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -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