From 320d5b369a4be9c6fc54684b9cd31500420d08ec Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Fri, 1 Jul 2016 14:26:24 -0700 Subject: [PATCH] rustfmt v0.5.0 --- cranelift/src/libcretonne/repr.rs | 4 ++-- cranelift/src/libcretonne/types.rs | 2 +- cranelift/src/libreader/parser.rs | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cranelift/src/libcretonne/repr.rs b/cranelift/src/libcretonne/repr.rs index 9c44f524ca..a42b9de20f 100644 --- a/cranelift/src/libcretonne/repr.rs +++ b/cranelift/src/libcretonne/repr.rs @@ -148,8 +148,8 @@ impl Function { // Update the second_result pointer in `inst`. if head != NO_VALUE { *self.inst_mut(inst) - .second_result_mut() - .expect("instruction format doesn't allow multiple results") = head; + .second_result_mut() + .expect("instruction format doesn't allow multiple results") = head; } *self.inst_mut(inst).first_type_mut() = first_type; diff --git a/cranelift/src/libcretonne/types.rs b/cranelift/src/libcretonne/types.rs index bc4cecca6b..1c44736111 100644 --- a/cranelift/src/libcretonne/types.rs +++ b/cranelift/src/libcretonne/types.rs @@ -66,7 +66,7 @@ pub const B64: Type = Type(11); impl Type { /// Get the lane type of this SIMD vector type. - /// + /// /// A scalar type is the same as a SIMD vector type with one lane, so it returns itself. pub fn lane_type(self) -> Type { Type(self.0 & 0x0f) diff --git a/cranelift/src/libreader/parser.rs b/cranelift/src/libreader/parser.rs index 1fe3368241..94e94cbdcd 100644 --- a/cranelift/src/libreader/parser.rs +++ b/cranelift/src/libreader/parser.rs @@ -608,7 +608,7 @@ impl<'a> Parser<'a> { // explicitly. It is unfortunate that the correctness of IL depends on the // layout of the blocks. let ctrl_src_value = inst_data.typevar_operand() - .expect("Constraints <-> Format inconsistency"); + .expect("Constraints <-> Format inconsistency"); ctx.function.value_type(match ctx.values.get(&ctrl_src_value) { Some(&v) => v, None => { @@ -791,8 +791,8 @@ mod tests { assert_eq!(sig.return_types.len(), 0); let sig2 = Parser::new("(i8 inreg uext, f32, f64) -> i32 sext, f64") - .parse_signature() - .unwrap(); + .parse_signature() + .unwrap(); assert_eq!(sig2.to_string(), "(i8 uext inreg, f32, f64) -> i32 sext, f64"); @@ -811,8 +811,8 @@ mod tests { ss3 = stack_slot 13 ss1 = stack_slot 1 }") - .parse_function() - .unwrap(); + .parse_function() + .unwrap(); assert_eq!(func.name, "foo"); let mut iter = func.stack_slot_iter(); let ss0 = iter.next().unwrap(); @@ -840,8 +840,8 @@ mod tests { ebb0: ebb4(vx3: i32): }") - .parse_function() - .unwrap(); + .parse_function() + .unwrap(); assert_eq!(func.name, "ebbs"); let mut ebbs = func.ebbs_numerically();