Deprecate TaintedString (#15423)
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
This commit is contained in:
parent
7b632f9ccb
commit
78a99587a4
36 changed files with 184 additions and 229 deletions
|
|
@ -1084,7 +1084,6 @@ const
|
|||
const
|
||||
hasThreadSupport = compileOption("threads") and not defined(nimscript)
|
||||
hasSharedHeap = defined(boehmgc) or defined(gogc) # don't share heaps; every thread has its own
|
||||
taintMode = compileOption("taintmode")
|
||||
nimEnableCovariance* = defined(nimEnableCovariance) # or true
|
||||
|
||||
when hasThreadSupport and defined(tcc) and not compileOption("tlsEmulation"):
|
||||
|
|
@ -1107,22 +1106,8 @@ when defined(boehmgc):
|
|||
const boehmLib = "libgc.so.1"
|
||||
{.pragma: boehmGC, noconv, dynlib: boehmLib.}
|
||||
|
||||
when taintMode:
|
||||
type TaintedString* = distinct string ## A distinct string type that
|
||||
## is `tainted`:idx:, see `taint mode
|
||||
## <manual_experimental.html#taint-mode>`_
|
||||
## for details. It is an alias for
|
||||
## ``string`` if the taint mode is not
|
||||
## turned on.
|
||||
type TaintedString* {.deprecated: "Deprecated since 1.5".} = string
|
||||
|
||||
proc len*(s: TaintedString): int {.borrow.}
|
||||
else:
|
||||
type TaintedString* = string ## A distinct string type that
|
||||
## is `tainted`:idx:, see `taint mode
|
||||
## <manual_experimental.html#taint-mode>`_
|
||||
## for details. It is an alias for
|
||||
## ``string`` if the taint mode is not
|
||||
## turned on.
|
||||
|
||||
when defined(profiler) and not defined(nimscript):
|
||||
proc nimProfile() {.compilerproc, noinline.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue