Skip to content

Commit

Permalink
librustc/middle/dataflow.rs: Debug to STDERR
Browse files Browse the repository at this point in the history
In 95d9046 output was accidentally moved
from STDERR to STDOUT.

This commit also changes the order of debug output. Previously, it was:

```
/* id 22: … */ {
  …
}
DEBUG:rustc::middle::dataflow:
```

Now, it is:

```
DEBUG:rustc::middle::dataflow: /* id 22: … */ {
  …
}
```
  • Loading branch information
adrianheine committed Jan 25, 2016
1 parent 6866f13 commit 71656d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustc/middle/dataflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,7 @@ impl<'a, 'tcx, O:DataFlowOperator+Clone+'static> DataFlowContext<'a, 'tcx, O> {
debug!("{}", {
let mut v = Vec::new();
self.pretty_print_to(box &mut v, blk).unwrap();
println!("{}", String::from_utf8(v).unwrap());
""
String::from_utf8(v).unwrap()
});
}

Expand Down

0 comments on commit 71656d2

Please sign in to comment.