From fb3565a848af21af18c26156f0acae9115257e46 Mon Sep 17 00:00:00 2001 From: The Miri Conjob Bot Date: Tue, 29 Aug 2023 05:45:20 +0000 Subject: [PATCH] fmt --- src/tools/miri/tests/pass/function_calls/abi_compat.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/tools/miri/tests/pass/function_calls/abi_compat.rs b/src/tools/miri/tests/pass/function_calls/abi_compat.rs index 67b87b46bd9..e586700b0eb 100644 --- a/src/tools/miri/tests/pass/function_calls/abi_compat.rs +++ b/src/tools/miri/tests/pass/function_calls/abi_compat.rs @@ -1,15 +1,17 @@ -use std::num; use std::mem; +use std::num; fn test_abi_compat(t: T, u: U) { - fn id(x: T) -> T { x } - + fn id(x: T) -> T { + x + } + // This checks ABI compatibility both for arguments and return values, // in both directions. let f: fn(T) -> T = id; let f: fn(U) -> U = unsafe { std::mem::transmute(f) }; drop(f(u)); - + let f: fn(U) -> U = id; let f: fn(T) -> T = unsafe { std::mem::transmute(f) }; drop(f(t));