about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-02-15 02:37:32 -0500
committerGitHub <noreply@github.com>2025-02-15 02:37:32 -0500
commit6593a25028f9b6e75900e2606e3067911cc042fc (patch)
treee50a4a3463f77ad03a1b9b1d714c470641429179
parent221ba2dfd11bbba3537ca7dac9397a23d3b852e7 (diff)
parent8769d03caf689f89e778f95f5458a5b69be6258d (diff)
downloadrust-6593a25028f9b6e75900e2606e3067911cc042fc.tar.gz
rust-6593a25028f9b6e75900e2606e3067911cc042fc.zip
Rollup merge of #137056 - geetanshjuneja:pub, r=RalfJung
made check_argument_compat public for use in miri

Links to [issue](https://github.com/rust-lang/miri/issues/3842) and it's [PR](https://github.com/rust-lang/miri/pull/4185#issuecomment-2657554989)  in miri.
-rw-r--r--compiler/rustc_const_eval/src/interpret/call.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/call.rs b/compiler/rustc_const_eval/src/interpret/call.rs
index cdf706f3752..29f819cca1f 100644
--- a/compiler/rustc_const_eval/src/interpret/call.rs
+++ b/compiler/rustc_const_eval/src/interpret/call.rs
@@ -241,7 +241,8 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
         interp_ok(caller == callee)
     }
 
-    fn check_argument_compat(
+    /// Returns a `bool` saying whether the two arguments are ABI-compatible.
+    pub fn check_argument_compat(
         &self,
         caller_abi: &ArgAbi<'tcx, Ty<'tcx>>,
         callee_abi: &ArgAbi<'tcx, Ty<'tcx>>,