Skip to content

Commit

Permalink
Assert that if we generating code for an item, than it is whitelisted
Browse files Browse the repository at this point in the history
This is a useful debugging tool for us to catch when code generation and
whitelisting have different understandings of the world.
  • Loading branch information
fitzgen committed Jan 27, 2017
1 parent 4e626ba commit e9e561b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ impl CodeGenerator for Item {
}

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

result.set_seen(self.id());

Expand Down

0 comments on commit e9e561b

Please sign in to comment.