Update rustfmt to 0.9.0.

This commit is contained in:
Dan Gohman
2017-08-31 10:44:59 -07:00
parent 46fb64cbb4
commit 2efdc0ed37
111 changed files with 4692 additions and 3379 deletions

View File

@@ -81,11 +81,12 @@ impl VirtRegs {
/// If `value` belongs to a virtual register, the congruence class is the values of the virtual
/// register. Otherwise it is just the value itself.
pub fn congruence_class<'a, 'b>(&'a self, value: &'b Value) -> &'b [Value]
where 'a: 'b
where
'a: 'b,
{
self.get(*value)
.map(|vr| self.values(vr))
.unwrap_or(ref_slice(value))
self.get(*value).map(|vr| self.values(vr)).unwrap_or(
ref_slice(value),
)
}
/// Check if `a` and `b` belong to the same congruence class.
@@ -126,9 +127,11 @@ impl VirtRegs {
.min()
.unwrap_or_else(|| self.vregs.push(Default::default()));
assert_eq!(values.len(),
singletons + cleared,
"Can't unify partial virtual registers");
assert_eq!(
values.len(),
singletons + cleared,
"Can't unify partial virtual registers"
);
self.vregs[vreg].extend(values.iter().cloned(), &mut self.pool);
for &v in values {