diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-03-15 15:43:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-15 15:43:19 -0700 |
commit | 8637c759662b6ea58bd1ff5df82cc5057672339d (patch) | |
tree | 30ec9fd56c40921824328a527613f0e020349e84 /src | |
parent | 4bc133665dc3fb7ca6535d9a8056e6b49a30caac (diff) | |
parent | 7a46377dbfedbd688ed8d4f27efab544d50b9a76 (diff) |
Auto merge of #587 - fitzgen:little-helper-stuff, r=emilio
Little helper stuff
A couple things that I've found helpful for iterative debugging.
r? @emilio
Diffstat (limited to 'src')
-rw-r--r-- | src/ir/dot.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ir/dot.rs b/src/ir/dot.rs index e7e1f47b..7472dd8e 100644 --- a/src/ir/dot.rs +++ b/src/ir/dot.rs @@ -36,15 +36,16 @@ pub fn write_dot_file<P>(ctx: &BindgenContext, path: P) -> io::Result<()> try!(writeln!(&mut dot_file, r#"</table> >];"#)); item.trace(ctx, - &mut |sub_id: ItemId, _edge_kind| { + &mut |sub_id: ItemId, edge_kind| { if err.is_some() { return; } match writeln!(&mut dot_file, - "{} -> {};", + "{} -> {} [label={:?}];", id.as_usize(), - sub_id.as_usize()) { + sub_id.as_usize(), + edge_kind) { Ok(_) => {} Err(e) => err = Some(Err(e)), } |