Upgrade to rustfmt 0.8.0.
Lots of changes this time. Worked around what looks like a rustfmt bug in parse_inst_operands where a large match was nested inside Ok().
This commit is contained in:
@@ -9,9 +9,7 @@ use self::cretonne::entity_map::EntityMap;
|
||||
fn test_reverse_postorder_traversal(function_source: &str, ebb_order: Vec<u32>) {
|
||||
let func = &parse_functions(function_source).unwrap()[0];
|
||||
let cfg = ControlFlowGraph::with_function(&func);
|
||||
let ebbs = ebb_order.iter()
|
||||
.map(|n| Ebb::with_number(*n).unwrap())
|
||||
.collect::<Vec<Ebb>>();
|
||||
let ebbs = ebb_order.iter().map(|n| Ebb::with_number(*n).unwrap()).collect::<Vec<Ebb>>();
|
||||
|
||||
let mut postorder_ebbs = cfg.postorder_ebbs();
|
||||
let mut postorder_map = EntityMap::with_capacity(postorder_ebbs.len());
|
||||
|
||||
Reference in New Issue
Block a user