diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2024-06-17 15:37:33 +0000 |
|---|---|---|
| committer | Maybe Lapkin <waffle.lapkin@gmail.com> | 2024-07-07 18:16:38 +0200 |
| commit | 6d4995f4e6d3f4fe6ac54943a5b01c3cf752dd5d (patch) | |
| tree | 40c8b84297114b93625f9e5beed41ec39aa4aa40 /compiler/rustc_const_eval/src | |
| parent | cda25e56c8d4f810d19034ebf5d0e4fdb155a264 (diff) | |
| download | rust-6d4995f4e6d3f4fe6ac54943a5b01c3cf752dd5d.tar.gz rust-6d4995f4e6d3f4fe6ac54943a5b01c3cf752dd5d.zip | |
add miri tests and a fixme
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/terminator.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/terminator.rs b/compiler/rustc_const_eval/src/interpret/terminator.rs index a8d18405b6e..9f4ca93a3e8 100644 --- a/compiler/rustc_const_eval/src/interpret/terminator.rs +++ b/compiler/rustc_const_eval/src/interpret/terminator.rs @@ -992,6 +992,10 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> { bug!("can't tailcall as root"); }; + // FIXME(explicit_tail_calls): + // we should check if both caller&callee can/n't unwind, + // see <https://github.com/rust-lang/rust/pull/113128#issuecomment-1614979803> + self.eval_fn_call( fn_val, (caller_abi, caller_fn_abi), |
