layout: Implement flow tree dumping with RUST_LOG=debug is on.

r? @pcwalton
This commit is contained in:
Clark Gaebel 2014-10-28 10:14:12 -07:00
parent 9e94ecf99c
commit a8f80b89f4
5 changed files with 29 additions and 10 deletions

View file

@ -266,7 +266,7 @@ impl PreorderFlow for FlowTreeVerification {
fn process(&mut self, flow: &mut Flow) {
let base = flow::base(flow);
if !base.flags.is_leaf() && !base.flags.is_nonleaf() {
println("flow tree verification failed: flow wasn't a leaf or a nonleaf!");
println!("flow tree verification failed: flow wasn't a leaf or a nonleaf!");
flow.dump();
fail!("flow tree verification failed")
}