Skip to content

Commit 352e257

Browse files
committed
feat: update to nightly-2024-07-16
New `TailCall` terminator kind. We do not need to implement it. It seems to be for recursive functions.
1 parent d60fcf1 commit 352e257

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Documentation: https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file
22

33
[toolchain]
4-
channel = "nightly-2024-06-16"
4+
channel = "nightly-2024-07-16"
55
components = ["llvm-tools-preview", "rustc-dev", "rust-src"]

src/translator/mir_visitor.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use rustc_middle::mir::visit::Visitor;
1010
use rustc_middle::mir::TerminatorKind::{
1111
Assert, Call, CoroutineDrop, Drop, FalseEdge, FalseUnwind, Goto, InlineAsm, Return, SwitchInt,
12-
Unreachable, UnwindResume, UnwindTerminate, Yield,
12+
TailCall, Unreachable, UnwindResume, UnwindTerminate, Yield,
1313
};
1414
use rustc_middle::mir::UnwindAction;
1515

@@ -169,6 +169,13 @@ impl<'tcx> Visitor<'tcx> for Translator<'tcx> {
169169
InlineAsm { .. } => {
170170
unimplemented!("TerminatorKind::InlineAsm not implemented yet")
171171
}
172+
TailCall {
173+
func: _,
174+
args: _,
175+
fn_span: _,
176+
} => {
177+
unimplemented!("TerminatorKind::TailCall not implemented yet")
178+
}
172179
}
173180

174181
self.super_terminator(terminator, location);

0 commit comments

Comments
 (0)