Skip to content

Commit 037a3b4

Browse files
committed
parser: prepare for eliminating a warning for v -cross -o vc/v.c cmd/v (part 1) (reduce CI annotation noise)
1 parent d5ff133 commit 037a3b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎vlib/v/parser/parser.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2903,7 +2903,7 @@ fn (mut p Parser) unsafe_stmt() ast.Stmt {
29032903
return p.error_with_pos('please use `unsafe {`', p.tok.pos())
29042904
}
29052905
p.next()
2906-
if p.inside_unsafe {
2906+
if p.inside_unsafe && !p.inside_defer {
29072907
return p.error_with_pos('already inside `unsafe` block', pos)
29082908
}
29092909
if p.tok.kind == .rcbr {

0 commit comments

Comments
 (0)