Skip to content

Commit c7920e9

Browse files
Araqnarimiran
authored andcommitted
fixes .raises inference for newSeq builtin under --gc:orc [backport] (#19158)
(cherry picked from commit 309ec71)
1 parent 167881b commit c7920e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/system/seqs_v2.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ proc prepareSeqAdd(len: int; p: pointer; addlen, elemSize, elemAlign: int): poin
7373
q.cap = newCap
7474
result = q
7575

76-
proc shrink*[T](x: var seq[T]; newLen: Natural) {.tags: [].} =
76+
proc shrink*[T](x: var seq[T]; newLen: Natural) {.tags: [], raises: [].} =
7777
when nimvm:
7878
setLen(x, newLen)
7979
else:

0 commit comments

Comments
 (0)