cargo fmt

This commit is contained in:
Brandon Fish 2019-01-20 09:52:54 -06:00
parent e245742251
commit 3399dddb5b

View File

@ -111,17 +111,13 @@ impl FuncResolverBuilder {
ir::LibCall::TruncF64 => libcalls::truncf64 as isize, ir::LibCall::TruncF64 => libcalls::truncf64 as isize,
ir::LibCall::NearestF64 => libcalls::nearbyintf64 as isize, ir::LibCall::NearestF64 => libcalls::nearbyintf64 as isize,
ir::LibCall::Probestack => libcalls::__rust_probestack as isize, ir::LibCall::Probestack => libcalls::__rust_probestack as isize,
_ => { _ => Err(CompileError::InternalError {
Err(CompileError::InternalError { msg: format!("unexpected libcall: {}", libcall),
msg: format!("unexpected libcall: {}", libcall), })?,
})?
}
}, },
RelocationType::Intrinsic(ref name) => { RelocationType::Intrinsic(ref name) => Err(CompileError::InternalError {
Err(CompileError::InternalError { msg: format!("unexpected intrinsic: {}", name),
msg: format!("unexpected intrinsic: {}", name), })?,
})?
}
RelocationType::VmCall(vmcall) => match vmcall { RelocationType::VmCall(vmcall) => match vmcall {
VmCall::LocalStaticMemoryGrow => vmcalls::local_static_memory_grow as _, VmCall::LocalStaticMemoryGrow => vmcalls::local_static_memory_grow as _,
VmCall::LocalStaticMemorySize => vmcalls::local_static_memory_size as _, VmCall::LocalStaticMemorySize => vmcalls::local_static_memory_size as _,