You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c841ffb
Browse filesBrowse the repository at this point in the historyBrowse files
Rollup merge of #164796 - RalfJung:variadic-ice, r=oli-obk
miri: fix ICE when caller signature is c-variadic but callee is not
It's entirely unnecessary to pass the `extra_args` to the *callee* signature. We only need them on the caller side. This also simplifies c-variadic passing a bit.
Fixesrust-lang/miri#5465
r? @oli-obk
| ^^^^^^^^^^^^^^^^^^^^ Undefined Behavior occurred here
@@ -8,9 +8,9 @@ LL | ap.next_arg::<i32>();
8
8
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
9
9
= note: stack backtrace:
10
10
0: main::variadic
11
-
at tests/fail/c-variadic-ignored-argument.rs:LL:CC
11
+
at tests/fail/function_calls/c-variadic-ignored-argument.rs:LL:CC
12
12
1: main
13
-
at tests/fail/c-variadic-ignored-argument.rs:LL:CC
13
+
at tests/fail/function_calls/c-variadic-ignored-argument.rs:LL:CC
14
14
15
15
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
8
+
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
9
+
10
+
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
0 commit comments