Skip to content

Commit 6593a25

Browse files
authored
Rollup merge of #137056 - geetanshjuneja:pub, r=RalfJung
made check_argument_compat public for use in miri Links to [issue](rust-lang/miri#3842) and it's [PR](rust-lang/miri#4185 (comment)) in miri.
2 parents 221ba2d + 8769d03 commit 6593a25

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_const_eval/src/interpret

1 file changed

+2
-1
lines changed

compiler/rustc_const_eval/src/interpret/call.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
241241
interp_ok(caller == callee)
242242
}
243243

244-
fn check_argument_compat(
244+
/// Returns a `bool` saying whether the two arguments are ABI-compatible.
245+
pub fn check_argument_compat(
245246
&self,
246247
caller_abi: &ArgAbi<'tcx, Ty<'tcx>>,
247248
callee_abi: &ArgAbi<'tcx, Ty<'tcx>>,

0 commit comments

Comments
 (0)