fixes #23001; give a better warning for PtrToCstringConv (#23005)

fixes #23001
This commit is contained in:
ringabout
2023-11-30 21:12:12 +08:00
committed by GitHub
parent bc24340d55
commit 7ea5aaaebb

View File

@@ -187,7 +187,7 @@ const
warnAnyEnumConv: "$1",
warnHoleEnumConv: "$1",
warnCstringConv: "$1",
warnPtrToCstringConv: "unsafe conversion to 'cstring' from '$1'; this will become a compile time error in the future",
warnPtrToCstringConv: "unsafe conversion to 'cstring' from '$1'; Use a `cast` operation like `cast[cstring](x)`; this will become a compile time error in the future",
warnEffect: "$1",
warnCastSizes: "$1", # deadcode
warnAboveMaxSizeSet: "$1",