'lock levels' are deprecated, now a noop (#20539)

* 'lock levels' are deprecated, now a noop

* fixes tests
This commit is contained in:
ringabout 2022-10-11 15:17:09 +08:00 • committed by GitHub
commit 5602183234
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 121 additions and 372 deletions

View file

@ -65,7 +65,7 @@ block tclosure:
# bug #5015
type Mutator = proc(matched: string): string {.noSideEffect, gcsafe, locks: 0.}
type Mutator = proc(matched: string): string {.noSideEffect, gcsafe.}
proc putMutated(
MutatorCount: static[int],

View file

@ -1,5 +1,5 @@
discard """
errormsg: "type mismatch: got <proc (x: int){.nimcall, gcsafe, locks: 0.}>"
errormsg: "type mismatch: got <proc (x: int){.nimcall, gcsafe.}>"
line: 12
"""

View file

@ -1,5 +1,5 @@
discard """
errormsg: "type mismatch: got <proc (){.closure, gcsafe, locks: 0.}> but expected 'A = proc (){.nimcall.}'"
errormsg: "type mismatch: got <proc (){.closure, gcsafe.}> but expected 'A = proc (){.nimcall.}'"
line: 9
"""

View file

@ -33,7 +33,7 @@ py
py
px
6
proc (){.closure, gcsafe, locks: 0.}
proc (){.closure, gcsafe.}
'''
"""