rustfmt tests to fix build

This commit is contained in:
Andre Bogus 2017-01-17 16:12:09 +01:00
parent 219da6d736
commit 27d47f970a
2 changed files with 3 additions and 3 deletions

View file

@ -90,7 +90,7 @@ fn test_ops() {
assert_eq!(half_any, half32);
assert_eq!(half_any, half64);
assert_eq!(half32, half64); // for transitivity
assert_eq!(half32, half64) // for transitivity
assert_eq!(Constant::Int(ConstInt::Infer(0)), Constant::Int(ConstInt::U8(0)));
assert_eq!(Constant::Int(ConstInt::Infer(0)), Constant::Int(ConstInt::I8(0)));

View file

@ -7,8 +7,8 @@
fn rust_type_id(name: String) {
if "bool" == &name[..] || "uint" == &name[..] || "u8" == &name[..] || "u16" == &name[..] ||
"u32" == &name[..] || "f32" == &name[..] || "f64" == &name[..] || "i8" == &name[..] ||
"i16" == &name[..] || "i32" == &name[..] || "i64" == &name[..] ||
"Self" == &name[..] || "str" == &name[..] {
"i16" == &name[..] || "i32" == &name[..] ||
"i64" == &name[..] || "Self" == &name[..] || "str" == &name[..] {
unreachable!();
}
}