Update to the rustfmt in rust 1.28, which is now stable.

Also, rustfmt's --write-mode=check is now named --check.
This commit is contained in:
Dan Gohman
2018-08-02 09:05:47 -07:00
parent 26d122306d
commit cd75176f10
40 changed files with 186 additions and 125 deletions

View File

@@ -307,7 +307,8 @@ impl<'a> Context<'a> {
// Create a live range for the new value.
// TODO: Should we handle ghost values?
let affinity = Affinity::new(
&self.encinfo
&self
.encinfo
.operand_constraints(pos.func.encodings[inst])
.expect("Bad copy encoding")
.outs[0],
@@ -352,7 +353,8 @@ impl<'a> Context<'a> {
// Create a live range for the new value.
// TODO: Handle affinity for ghost values.
let affinity = Affinity::new(
&self.encinfo
&self
.encinfo
.operand_constraints(pos.func.encodings[inst])
.expect("Bad copy encoding")
.outs[0],
@@ -419,7 +421,8 @@ impl<'a> Context<'a> {
let node = Node::value(value, 0, self.func);
// Push this value and get the nearest dominating def back.
let parent = match self.forest
let parent = match self
.forest
.push_node(node, self.func, self.domtree, self.preorder)
{
None => continue,