Skip to content

Commit 44ed608

Browse files
committed
Assert that if we generating code for an item, than it is whitelisted
This is a useful debugging tool for us to catch when code generation and whitelisting have different understandings of the world.
1 parent dd3eb89 commit 44ed608

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/codegen/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ impl CodeGenerator for Item {
287287
}
288288

289289
debug!("<Item as CodeGenerator>::codegen: self = {:?}", self);
290+
assert!(whitelisted_items.contains(&self.id()));
290291

291292
result.set_seen(self.id());
292293

0 commit comments

Comments
 (0)