Skip to content

Commit e6dcacf

Browse files
committed
Add more validation of builtins headers
1 parent 9d13fbf commit e6dcacf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gen/src/builtin.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,13 @@ fn write_builtin<'a>(out: &mut Content<'a>, include: &mut Includes, src: &'a str
404404
out.next_section();
405405
ready = true;
406406
} else if !line.trim_start_matches(' ').starts_with("//") {
407+
assert!(ready);
407408
writeln!(out, "{}", line);
408409
}
409410
}
410411

411412
assert!(namespace.is_empty());
413+
assert!(ready);
412414
}
413415

414416
#[cfg(test)]

0 commit comments

Comments
 (0)